Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

JwayneT

2things 'unidentified symbol _main' n install of 7.0a

This topic is 6561 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Good Evening fellow code scribes,

I was compiling my code over to MSVC++ 5.0 pro and I ran into some interesting errors. I first wrote my code in Borland, but I wrote in in ASCII format so it compiles fine. It''s the linker that is giving me trouble. I keep getting ''unidentified symbol _main'' and ''unidentified symbol DirectDrawCreate@12''. Now I ran into these errors in Borland, but I think that the solution is compiler specific.

Now for the next question, how do I properly install DirectX 7.0a SDK onto my Computer?

Snootchie Bootchies!

-=CF=-

Share this post


Link to post
Share on other sites
Advertisement
To fix the first problem, you need to add the Direct Draw libraries to your project. Go to Project->Settings then to the Link tab and add dxguid.lib and ddraw.lib to the list.

Installing the DX7 SDK is pretty straighforward: just run the install program .

----------------------------------------
"Before criticizing someone, walk a mile in their shoes.
Then, when you do criticize them, you will be a mile away and have their shoes." -- Deep Thoughts

"If you have any trouble sounding condescending, find a Unix user to show you how it's done." - Scott Adams

Share this post


Link to post
Share on other sites
I think I have allready added the .lib files but I will check again. And thanx for the 7.0a help, I didn''t look at it yet and I thought that it was just a bunch of headers that I had to put in, like in borland.

Snootchie Bootchies!

-=CF=-

Share this post


Link to post
Share on other sites
Your undefined symbol problem may stem from the fact that your project is not set up correctly, it should not be a win32 console app, it should just be a win32 app.

As Senshi said, make sure the libs are added and you may also want to add the header files into your project too, and make sure the tools->options->directories tab has your DX SDK directory in it as the first in line.


-Mezz

Share this post


Link to post
Share on other sites
JwayneTI thought that it was just a bunch of headers that I had to put in, like in borland.

Huh? I use Borland and didn't have to do anything like that. Well, other than make sure I used the correct libs but that wasn't difficult.

Regards,
David Stubbs

P.S. How do you do that quote thing you all seem to do?

Edited by - n0p3x on August 29, 2000 5:58:15 AM

Share this post


Link to post
Share on other sites
Well microsoft in its *infinite wisdom* includes an outdated..at least now it is...version of DX libs with the compiler
Thus you have to make sure the newer lib and include folders are above the older folders so that it pulls from the correct DX libs and not the ones installed with the compiler

Share this post


Link to post
Share on other sites
That outdated version would be DX 3.0. Yeah, I have seen about 20 questions like that come through here in the past month (at least 20 ) and the solutions I gave were all as simple as that... It stuffs sooo many people up that it just makes me dislike M$ more

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-Chris Bennett of Dwarfsoft
"The Philosophers' Stone of Programming Alchemy"
IOL (The list formerly known as NPCAI) - A GDNet production
Our Doc - The future of RPGs
Thanks to all the goblins over in our little Game Design Corner niche
          

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!