• Advertisement

Archived

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

Converting to Dev-Cpp drives me crazy

This topic is 5074 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

Hello everybody! I am trying to convert my directx game engine from M$ VC++6 to Dev-C++. Everything works fine with my engine-dll, it compiled without errors. When i am now trying to write a game using this engine i got linking errors, even though I definitely link to my lib file. The crazy thing is that these linker errors appear only for SOME member functions of my classes. Any ideas? I have been sitting for 5 hours now to solve this problem .... The Wild Wild West - Desperado!

Share this post


Link to post
Share on other sites
Advertisement
make sure that your .lib is converted to .a (Dev-C++ format)
also i remember when i first did DirectX on Dev-C++ i had to put -fthunks -vtable in the compiler options. do anyone know if you still have to do that?

Share this post


Link to post
Share on other sites
the problem is not creating and linking my engine dll (and lib file) with all the directx stuff it it (this problem i solved three hours before ;-)

The problem is now creating the game itself where i have to link to my own engine lib file. (everything worked fine under vc).


The Wild Wild West - Desperado!

Share this post


Link to post
Share on other sites
I _definitely_ link to the library!! I know this because when i do not link to it I get about 120 errors, when I link to it I only get 18. ;-)

My error is a [linker error] undefined reference to SomeClass::SomeMemberFuntion.

The problem is why only to a few member function out of a class. E.g. i have an input class with about 20 member function, but the linker error only appears for __1__ member function.

Any ideas?


The Wild Wild West - Desperado!

[edited by - Wildwest on May 20, 2004 3:51:58 PM]

Share this post


Link to post
Share on other sites
Post the errors and any relevant code, it''ll be much easier to pinpoint your problem if you do it that way.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
OK, this must be a compiler error. I have _exactly_ the same problem: engine library compiles but the compiling the tests gives linker errors. I am definitely linking to my lib (that''s not the problem), but the linker says that my INPUT:: and TIMER:: methods are undefined. Everything else links away just fine. The funny thing is that these classes use exactly the same things as the others (the don''t rely on anything different than the VIDEO:: methods for example, but the latter works when the former don''t).
I''ll try downloading the CVS version to see if it works. I''ll post here sometime later my results.

PS: (WildWest) If you can get it to work, please post here!

Share this post


Link to post
Share on other sites

  • Advertisement