c++ question

  • gba_m
  • Student
  • Student
  • gba_m
  • Posts: 71

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9089
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

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.
  • Ner0
  • Born
  • Born
  • Ner0
  • Posts: 2
  • Loc: Uk

Post 3+ Months Ago

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
  • Kasracer
  • Posts: 26
  • Loc: Maryland

Post 3+ Months Ago

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 52 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
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.