Jump to content
  • Advertisement

Archived

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

DumbBill

#include help!

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

I''ve never really had too many problems with this in the past, but on my latest project I seem to be battling more with irritating linkage problems than with the actual code of my 3D engine!!! Basically, I set out my code as follows: #include "Myclass.h" class SomethingElse { private: Myclass M; public: ... }; I''m getting hundreds (literally) of errors depending only upon minor alterations in the order that I include things.... I always put the old #ifndef MYHEADER #define MYHEADER at the top, but still my errors pile up. Can you not simply include the headers that define your classes in the other source files that use those classes??? What am I doing wrong? It''s very annoying, since it drastically reduces the amount of time I get to do ''actual coding''. Can someone please help?

Share this post


Link to post
Share on other sites
Advertisement
Thanks for the suggestion, but unfortunately yes I do.

[edited by - DumbBill on April 18, 2003 11:46:27 AM]

Share this post


Link to post
Share on other sites
Namespace problems? Always remember to make sure your classes are in the correct namespace. Otherwise your linker won''t know what you''re talking about.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!