LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-07-2004, 10:51 AM   #1
Gregor7777
LQ Newbie
 
Registered: Jul 2002
Location: Plattsburgh, NY
Distribution: Mandrake 8.2
Posts: 5

Rep: Reputation: 0
Newbie Q(sorry): Programming simple apps for school...


Hi,

I looked around and am having a difficult time wrapping my mind around a seemingly simple concept.

I've switched over to linux 100%; I no longer will put up with ANY Microsoft products. My desktop is running Fedora Core 2 for the time being and my servers are running VectorLinux and Gentoo.

Now, I'm a student and I'm taking a c++ w/STL programming class this term and will need to create apps that can run in a windows/dos envirnoment for my professor. I don't suspect they will need to be extremly complex.

Can I use gcc and Anjuta to create these apps? Would they need to be compiled on a windows machine for them to run? If so, can anyone point me in the right direction to get started leaning what I need to know?

Sorry for all the questions, I appreciate any help that anyone can offer.

Thanks!

greg

Last edited by Gregor7777; 10-07-2004 at 10:55 AM.
 
Old 10-07-2004, 11:21 AM   #2
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 36
As long as they are console apps using cin & cout with stright STL calls they will compile on both platforms.

Most profs want source code, not an executable. If he wants both, you will have to compile your C++ on Windoze as well. The school will have PC's you can use to do this.
 
Old 10-07-2004, 11:26 AM   #3
Gregor7777
LQ Newbie
 
Registered: Jul 2002
Location: Plattsburgh, NY
Distribution: Mandrake 8.2
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by jim mcnamara
As long as they are console apps using cin & cout with stright STL calls they will compile on both platforms.

Most profs want source code, not an executable. If he wants both, you will have to compile your C++ on Windoze as well. The school will have PC's you can use to do this.
Great, so it sounds like there are no differences in the cource code then. Yeah, most of my professors thus far just wanted source code so that is a good thing then. I use windows at work so if I needed to compile I could do it there on a spare system. I'm a distance learning student so no campus for me.

So if a professor wanted me to compile a simple app and gave me the source (and he was under the impression I was using VS6 let's say), as long as he used cin and c out I would be good to go? By straight stl calls do you mean no references to windows specific code? Pardon my ignorance please...

Allow me to edit: all programs would be console apps, they just recommend VS6 as an IDE
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OS X and programming gtk apps. ooagentbender Programming 2 02-14-2005 10:55 PM
Simple C programming Spooky Programming 5 10-22-2004 04:16 AM
A Simple Programming IDE for X. xarius Programming 8 02-25-2004 01:10 PM
programming simple GUI apps for experiments Hcman Programming 10 10-09-2003 08:11 AM
Looking for some simple C++ apps to study fieldmethods Programming 1 08-30-2003 03:05 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration