Jump to content
  • Advertisement

Archived

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

Caesar

DJGPP project fails to compile

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

Hi, I know this may be a little bit off topic and that DOS DJGPP is now obsolete, but I tried to a school project and I don''t know how to manage the projects there. Assume I have ie 3 files, mylib.h mylib.cpp main.cpp i the mylib.h i have a lock of course (#ifndef MYLIB_H #define MYLIB_H ...code... #endif) and I include it in the mylib.cpp like #include"mylib.cpp". When i tried to compile those, I got a "XXXXX already defiend in mylib.h), this is the way it works under MSVC but how about djgpp (RHIDE)? Thanks

Share this post


Link to post
Share on other sites
Advertisement
umm, i have only a class definition there, and even if i cut-past it into the cpp file, in stil keeps telling already defined (for methods)

Share this post


Link to post
Share on other sites
if you''re using rhide, make sure your header files aren''t included in the project(in the window with the list of files that make up the project)

i''d also advise using dev-c++ w/ mingw(mingw is included) if you want to use a free c/c++ compiler+ide



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!