Find the answer to your Linux question:
Results 1 to 9 of 9
I am teaching myself C++ and right now I am using Visual Studio. I know VB .net and would like to expand my programming knowledge. I have 2 computers one ...
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Posts
    23

    Cross platform C++ IDE

    I am teaching myself C++ and right now I am using Visual Studio. I know VB.net and would like to expand my programming knowledge. I have 2 computers one is vista and the runs ubuntu 9.04. I have tried eclipse, monodevelopment, anjuti(something like that.) and codeblocks and i don't like them i couldn't figure out how to get a prgrom to run in a few and for eclipse i liked it but when i used the cin command there was no place to input anything. Can anyone recommend me a good one htat is very easy to use and runs on vista nd linux.

    If i write it in linux will it run in vista and vice versa? If not is there anyway i can make it to do that?

  2. #2
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714
    Myself I always used GEdit or BlueFish. I think both are available for windows...and yes they are easy to use..
    Make mine Arch Linux

  3. #3
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714
    Quote Originally Posted by Mac_Attack18 View Post
    If i write it in linux will it run in vista and vice versa? If not is there anyway i can make it to do that?
    Some C++ things will compile on both Windows and Linux without problems but if your using GUI,Threads, sockets etc you'll have to port your program..If you use only standard C++ then you should have no problems
    Make mine Arch Linux

  4. #4
    Just Joined!
    Join Date
    Sep 2009
    Posts
    23
    How do i know what is standard C++ and what isn't? Sorry I am new to C++ and its slow going lol.

  5. #5
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714
    Quote Originally Posted by Mac_Attack18 View Post
    How do i know what is standard C++ and what isn't? Sorry I am new to C++ and its slow going lol.
    Yeah it takes a while to get used to a language like C/C++
    Make mine Arch Linux

  6. #6
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    Quote Originally Posted by Mac_Attack18 View Post
    I am teaching myself C++ and right now I am using Visual Studio. I know VB.net and would like to expand my programming knowledge. I have 2 computers one is vista and the runs ubuntu 9.04. I have tried eclipse, monodevelopment, anjuti(something like that.) and codeblocks and i don't like them i couldn't figure out how to get a prgrom to run in a few and for eclipse i liked it but when i used the cin command there was no place to input anything. Can anyone recommend me a good one htat is very easy to use and runs on vista nd linux.

    If i write it in linux will it run in vista and vice versa? If not is there anyway i can make it to do that?
    I gather since you're used to VStudio you want more than just a text editor. There are quite a few, some available for Windows too.

    Code::Blocks
    Eclipse for C++
    Anjuta

    And for just Windows, a good standards-compliant C++ IDE is Bloodshed Dev.
    Registered Linux user #270181
    TechieMoe's Tech Rants

  7. #7
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Quote Originally Posted by Mac_Attack18 View Post
    I am teaching myself C++ and right now I am using Visual Studio. I know VB.net and would like to expand my programming knowledge. I have 2 computers one is vista and the runs ubuntu 9.04. I have tried eclipse, monodevelopment, anjuti(something like that.) and codeblocks and i don't like them i couldn't figure out how to get a prgrom to run in a few and for eclipse i liked it but when i used the cin command there was no place to input anything. Can anyone recommend me a good one htat is very easy to use and runs on vista nd linux.

    If i write it in linux will it run in vista and vice versa? If not is there anyway i can make it to do that?
    Eclipse does run on both Windows and Linux (and just about every other OS out there), so if you are comfortable with it, go with it. Myself, I prefer to use a good programmer's editor (nedit in my case) and make. I find that most IDE's just get in my way, with the possible exception of source-level debugging when I absolutely need it. FWIW, I have been programming in C and C++ for over 25 years on many different operating systems, including WIndows (since DOS 1.0), Unix (many, many variants), QNX (real-time posix OS), and Linux. The code I have developed ranges from real-time device drivers to enterprise manufacturing execution systems. All the mainstream applications I have developed have been multi-platform (Unix and Windows).

    Anyway, to write code that runs on Linux and Windows both, you need to use primarily the POSIX api's since they are supported on both systems. Windows-specific code doesn't port well to the Linux environment, though most Linux code will compile on Windows if you include the correct headers. In some cases, you might need to include some #ifdef...#endif blocks to conditionally include the right ones. Also remember that Windows will handle Unix/Linux style path separators (forward slashes), but Linux doesn't handle Windows style ones (back slashes) because a backslash in a string on Linux is an escape character. IE, a "\n" will result in the compiler inserting a newline and not the literal "\n". This is true for #include directives as well, and the cause of much gnashing of teeth when porting code from Windows to Linux/Unix.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  8. #8
    Linux Enthusiast gerard4143's Avatar
    Join Date
    Dec 2007
    Location
    Canada, Prince Edward Island
    Posts
    714
    I just looked up nedit...its pretty harsh...give me GEdit
    Make mine Arch Linux

  9. #9
    Linux Newbie
    Join Date
    Nov 2007
    Location
    Planet Earth
    Posts
    152
    QT Framework (+ any-IDE-you-want) is a very nice option for crossplatform develpment (in my opinion, the most powerfull). There are GUI designers for all platforms and a good set of tools for deployment.
    EOF

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...