c++ question

  • gba_m
  • Student
  • Student
  • No Avatar
  • Joined: Aug 03, 2003
  • Posts: 71
  • Status: Offline

Post September 19th, 2003, 2:16 pm

I used Turbo C++ a long time ago and my files worked (compiled and run well). Now, I tried going back on programming c++ and I tried the devC++ and my files won't compile. Does anyone know why?

I get messages like:

undefined reference to '__main'
undefined reference to 'clrscr'
undefined reference to 'cou'
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post September 19th, 2003, 2:16 pm

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8922
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post September 20th, 2003, 5:03 pm

Maybe you are using some header files it doesn't recognize, or missing a library or object file? I have never used devC++ so I am not really sure. All I know is that when I compile in GNU I get undefined references if I compile something that doesn't have the object file attached that contains those references.
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • Ner0
  • Born
  • Born
  • No Avatar
  • Joined: Oct 04, 2003
  • Posts: 2
  • Loc: Uk
  • Status: Offline

Post October 5th, 2003, 4:37 am

I Use Dev C++
When I First Started, I Found That I Got Many Errors, However I Found That Lookin at The Example Files, Helped Me Greatly
:D Good Luck :D
  • Kasracer
  • Banned
  • Banned
  • No Avatar
  • Joined: Oct 26, 2003
  • Posts: 26
  • Loc: Maryland
  • Status: Offline

Post October 26th, 2003, 9:23 pm

DevC++ uses MinGW and gcc 3.3.1 to compile your code.

MinGW is very conformant to the C++ standard. It looks like you were using broken C++.

It would help to POST your code so we could tell you what the problems are and why

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 235 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.