|
 |
|
 |
02-17-2006, 01:57 PM
|
#1 (permalink)
|
|
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,486
|
setting up a dev environment
ok, so every once in a while i get a bug to work on some c++. i have a project that i have programmed in PHP, but it would be cool to do it with c++.
if i want to write an app that runs on linux, can i develop it on windows so long as i'm using standard c++? if so, are there any articles that would show me how to setup a visual studio project for this?
this little project will start off by reading an rss feed, and writing to a database.
|
|
|
02-17-2006, 02:06 PM
|
#2 (permalink)
|
|
Newbie
Join Date: Jun 2002
Location: Denmark
Posts: 1,705
|
Yes, you can develop everything on the platform of your desire, just as long as you keep within the ANSI/ISO standards, the tweaking to another platform isn't a problem, it will most likely be somethign like location of standard includes, where there might be a naming problem or directory restriction..
With regards to the Visual Studio setup, I have no preferences, since I've never worked with that IDE.
|
|
|
02-17-2006, 02:12 PM
|
#3 (permalink)
|
|
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,486
|
it's the only c++ IDE i know, (primarily from c# development) .. can you recommend something else for windows?
|
|
|
02-17-2006, 02:38 PM
|
#4 (permalink)
|
|
Newbie
Join Date: Jun 2002
Location: Denmark
Posts: 1,705
|
Quote:
|
can you recommend something else for windows?
|
Check out the sticky thread on C++ compilers here...
Bloodsheds Dev-cpp with Code::Blocks is an excelent solution.
|
|
|
02-17-2006, 02:56 PM
|
#5 (permalink)
|
|
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,486
|
funny i did not read that before. thanks 
|
|
|
02-17-2006, 02:58 PM
|
#6 (permalink)
|
|
Senior Contributor
Join Date: Mar 2005
Posts: 672
|
I'm using Borland C++ for ages but thinking to switch to Kylix
|
|
|
02-17-2006, 03:02 PM
|
#7 (permalink)
|
|
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,486
|
Quote:
|
Originally Posted by DJMaze
I'm using Borland C++ for ages but thinking to switch to Kylix
|
are you considering switching because of their recent announcement?
http://news.moneycentral.msn.com/pro...208&ID=5485679
i saw that a couple days ago. i shoulda put that on c.n. news too.
|
|
|
02-17-2006, 03:22 PM
|
#8 (permalink)
|
|
Senior Contributor
Join Date: Mar 2005
Posts: 672
|
hmm back to the drawing board then.
|
|
|
02-17-2006, 05:28 PM
|
#9 (permalink)
|
|
Jack of all trades
Join Date: Feb 2005
Location: Los Angeles
Posts: 598
|
I like emacs + gcc
__________________
Stop intellectual property from infringing on me
|
|
|
02-21-2006, 11:06 AM
|
#10 (permalink)
|
|
Registered User
Join Date: Apr 2003
Posts: 34
|
Quote:
|
Originally Posted by redhead
Yes, you can develop everything on the platform of your desire, just as long as you keep within the ANSI/ISO standards, the tweaking to another platform isn't a problem, it will most likely be somethign like location of standard includes, where there might be a naming problem or directory restriction..
With regards to the Visual Studio setup, I have no preferences, since I've never worked with that IDE.
|
Code written in VS should compile fine under Linux, unless you use Microsoftisms. The directories that the includes are under shouldn't matter, since that's handled by the compiler/build environment.
I've written TONS of code using various versions of VS that have been ultimately deployed in a linux environment. As in, pretty much everything I've written for the last 4 and a half years.
If you want to use a different IDE to try something out, or so you can use the same project setup (if you're using, say, eclipse) cross-platform, there's nothing wrong with that. There's also nothing preventing you from writing cross-platform code in VS.
EDIT: If you specify the directory for the includes inside your source file, of course, all bets are off. But that's a really horrible idea anyway, so just don't do that 
|
|
|
02-21-2006, 12:37 PM
|
#11 (permalink)
|
|
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,486
|
thanks a lot for all the info. it seems like vs will work ok then.
|
|
|
02-23-2006, 06:49 AM
|
#13 (permalink)
|
|
Huzzah!
Join Date: Feb 2006
Posts: 8
|
I use Codeblocks myself and its a decent program as long as you use it specifically for C/C++. Doesn't appear to be as useful for editing other code
|
|
|
02-23-2006, 04:24 PM
|
#14 (permalink)
|
|
Registered User
Join Date: Apr 2003
Posts: 34
|
Codeblocks and eclipse are decent if you're set on open source.
VC2005 Express is also available for free, if you're just worried about free as in beer. And unlike previous versions (VC2003, anyone?), it's the full optimizing compiler.
|
|
|
02-23-2006, 05:35 PM
|
#15 (permalink)
|
|
Jack of all trades
Join Date: Feb 2005
Location: Los Angeles
Posts: 598
|
Free Software started with emacs.
__________________
Stop intellectual property from infringing on me
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -8. The time now is 04:22 PM.
|
Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
|
 |
|