Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 02-17-2006, 01:57 PM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,486
sde is on a distinguished road
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.
sde is offline   Reply With Quote
Old 02-17-2006, 02:06 PM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,705
redhead is on a distinguished road
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.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 02-17-2006, 02:12 PM   #3 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,486
sde is on a distinguished road
it's the only c++ IDE i know, (primarily from c# development) .. can you recommend something else for windows?
sde is offline   Reply With Quote
Old 02-17-2006, 02:38 PM   #4 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,705
redhead is on a distinguished road
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.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 02-17-2006, 02:56 PM   #5 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,486
sde is on a distinguished road
funny i did not read that before. thanks
sde is offline   Reply With Quote
Old 02-17-2006, 02:58 PM   #6 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 672
DJMaze is on a distinguished road
I'm using Borland C++ for ages but thinking to switch to Kylix
DJMaze is offline   Reply With Quote
Old 02-17-2006, 03:02 PM   #7 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,486
sde is on a distinguished road
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.
sde is offline   Reply With Quote
Old 02-17-2006, 03:22 PM   #8 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 672
DJMaze is on a distinguished road
hmm back to the drawing board then.
DJMaze is offline   Reply With Quote
Old 02-17-2006, 05:28 PM   #9 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 598
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
I like emacs + gcc
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Old 02-21-2006, 11:06 AM   #10 (permalink)
kyoryu
Registered User
 
Join Date: Apr 2003
Posts: 34
kyoryu is on a distinguished road
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
kyoryu is offline   Reply With Quote
Old 02-21-2006, 12:37 PM   #11 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,486
sde is on a distinguished road
thanks a lot for all the info. it seems like vs will work ok then.
sde is offline   Reply With Quote
Old 02-22-2006, 08:11 PM   #12 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 672
DJMaze is on a distinguished road
Just found http://codeblocks.org/ i go check it out
DJMaze is offline   Reply With Quote
Old 02-23-2006, 06:49 AM   #13 (permalink)
l33t_1-1axx0r
Huzzah!
 
l33t_1-1axx0r's Avatar
 
Join Date: Feb 2006
Posts: 8
l33t_1-1axx0r is on a distinguished road
Send a message via AIM to l33t_1-1axx0r Send a message via MSN to l33t_1-1axx0r Send a message via Yahoo to l33t_1-1axx0r
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
l33t_1-1axx0r is offline   Reply With Quote
Old 02-23-2006, 04:24 PM   #14 (permalink)
kyoryu
Registered User
 
Join Date: Apr 2003
Posts: 34
kyoryu is on a distinguished road
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.
kyoryu is offline   Reply With Quote
Old 02-23-2006, 05:35 PM   #15 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 598
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
Free Software started with emacs.
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting Up GTKmm Feis Platform/API C++ 0 07-16-2005 08:46 PM
Clear the screen in Dev CPP MiLo Standard C, C++ 1 03-07-2005 03:33 PM
Setting the path for python scripting Intensegutwound All Other Coding Languages 7 11-23-2004 06:32 AM
Just starting out in Code Dev nyjbarnes MS Technologies ( ASP, VB, C#, .NET ) 8 07-29-2004 01:37 PM


All times are GMT -8. The time now is 04:22 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting