C++ compiler

Reply

Join Date: Oct 2007
Posts: 18
Reputation: MedianHansen is an unknown quantity at this point 
Solved Threads: 0
MedianHansen MedianHansen is offline Offline
Newbie Poster

C++ compiler

 
0
  #1
Oct 24th, 2007
Lately i've been having some problems, importing an SDL library, into my compiler, and as a result of that i have chosen to change to a new compiler. I have followed 3 differend online tutorials, re-installed the compiler three times, and done it with three different downloads of the SDL library, so i'm sure it's not just some weird mistake. I keep getting the following errors:
multiple definition of `main'
first defined here
.drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
[Linker error] undefined reference to `_alloca_probe'
[Linker error] undefined reference to `SDL_main'
[Linker error] undefined reference to `_alloca_probe'
[Linker error] undefined reference to `_alloca_probe'
ld returned 1 exit status
C:\Dev-Cpp\Makefile.win [Build Error] [Nuskaldetvirke.exe] Error 1
The [Linker error] undefined reference to `SDL_main' errer, however i know how to remove...
I get all these errors without no source code!
So, as i said, i'm thinking of changing compiler, because i simply don't tihnk this compielr works with Vista or something... because all three times it has been the same result, and all the times i have used a new: Tutorial, in how to import the SDL library, new installation of the compiler and new download of the library.
And i haven't "cross used" them, so it should be pretty clear that none of those are the problems.
If any1 have a suggestion on how to correct the errors, please tell me.
Otherwise, could any1 suggest a free c++ compiler, that works fine on vista.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 16,601
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1614
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: C++ compiler

 
0
  #2
Oct 24th, 2007
>>could any1 suggest a free c++ compiler, that works fine on vista.
VC++ 2005 Express and Dev-C++ are just two of them. Borland ++ probably also works but I have not tried it.

As for your problem what compiler(s) have you tried. If its pretty current (not ancient Turbo C) then I doubt the problem is your compiler but the way you have it set up. Post a link to where you got that library and post your program.
The most important thing in the Olympic Games is not to win but to take part, just as the most important thing in life is not the triumph but the struggle. The essential thing is not to have conquered but to have fought well.
-Pierre de Coubertin, The Olympic Creed Inspired by Bishop Ethelbert
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 4,296
Reputation: WaltP has a brilliant future WaltP has a brilliant future WaltP has a brilliant future WaltP has a brilliant future WaltP has a brilliant future WaltP has a brilliant future WaltP has a brilliant future WaltP has a brilliant future WaltP has a brilliant future WaltP has a brilliant future WaltP has a brilliant future 
Solved Threads: 409
Moderator
WaltP's Avatar
WaltP WaltP is online now Online
Industrious Poster

Re: C++ compiler

 
0
  #3
Oct 24th, 2007
Compilers
Code::Blocks
MSVC++ Express
Open Watcom C++/Fortran
Bloodshed DevC
Borland 5.5

Don't use Vista but they all work on XP.
The 3 Laws of the Procrastination Society:
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 16,601
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1614
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: C++ compiler

 
0
  #4
Oct 24th, 2007
Well I'm pretty certain your problem is the way you have your environment set up because I downloaded and installed the SDL lib source, sompiled it, then ran one of the tutorials I found here. I used VC++ 2005 Express compiler with the Windows SDK and DirectX SDK installed.
The most important thing in the Olympic Games is not to win but to take part, just as the most important thing in life is not the triumph but the struggle. The essential thing is not to have conquered but to have fought well.
-Pierre de Coubertin, The Olympic Creed Inspired by Bishop Ethelbert
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 18
Reputation: MedianHansen is an unknown quantity at this point 
Solved Threads: 0
MedianHansen MedianHansen is offline Offline
Newbie Poster

Re: C++ compiler

 
0
  #5
Oct 25th, 2007
Kk dragon, thx. I will try your mwthod as well.
I was using dev-c++ before. But the reason i don't tihnk it had a wrong setup is, as i said, i followed three different tutorials, and had the same result (The same errors) each time

But... it could be a wrong setup, because i'm new and don't know anything about importing libraries
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 18
Reputation: MedianHansen is an unknown quantity at this point 
Solved Threads: 0
MedianHansen MedianHansen is offline Offline
Newbie Poster

Re: C++ compiler

 
0
  #6
Oct 25th, 2007
Are Windows SDK and DirectX SDK installed necessary, for both VC++ and dev-c++?
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 1,067
Reputation: Sturm is on a distinguished road 
Solved Threads: 24
Sturm's Avatar
Sturm Sturm is offline Offline
Veteran Poster

Re: C++ compiler

 
0
  #7
Oct 26th, 2007
Were you using devpaks? If not, I suggest you try it as generally it's quite easy to install devpak libraries. http://devpaks.org/category.php?category=SDL
"Hey ass, don't hijack my thread. This is serious." -JoshSCH
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 18
Reputation: MedianHansen is an unknown quantity at this point 
Solved Threads: 0
MedianHansen MedianHansen is offline Offline
Newbie Poster

Re: C++ compiler

 
0
  #8
Oct 27th, 2007
WEll... yeah, i tried with devpacks as well...
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 16,601
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1614
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: C++ compiler

 
0
  #9
Oct 27th, 2007
Originally Posted by MedianHansen View Post
Are Windows SDK and DirectX SDK installed necessary, for both VC++ and dev-c++?
For VC++ 2005 Express yes, don't know about DEV-C++. After you have downloaded and installed them you have to configure the compiler's IDE with the paths to the include and lib directories.
The most important thing in the Olympic Games is not to win but to take part, just as the most important thing in life is not the triumph but the struggle. The essential thing is not to have conquered but to have fought well.
-Pierre de Coubertin, The Olympic Creed Inspired by Bishop Ethelbert
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 22
Reputation: people123 is an unknown quantity at this point 
Solved Threads: 1
people123 people123 is offline Offline
Newbie Poster

Re: C++ compiler

 
-1
  #10
Oct 27th, 2007
I'm using this for Vista, works fine.

http://www.bloodshed.net/
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum


Views: 2746 | Replies: 9
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC