Jump to content
  • Advertisement
Sign in to follow this  
maxfire

SDL netbeans error

This topic is 2616 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 gys I have recently tried switching to Netbeans IDE for my SDL c++ development. I have encountered the following error, and after hours of googling have come to no solution
make[2]: *** No rule to make target `SDL.lib', needed by `dist/Debug/Cygwin-Windows/zelda.exe'. Stop.

Within netbeans I am using the cgwin c++ compiler, On the cgwin download I included all the development tools so it is not something I have missed out from here ( I can compile raw c++ just fine).
I have also tried reverting the cgwin defalut compiler back to version 3 like suggested on a few guides.
All of my includes and dependences have also been added

Thanks for reading

Share this post


Link to post
Share on other sites
Advertisement

Hi gys I have recently tried switching to Netbeans IDE for my SDL c++ development. I have encountered the following error, and after hours of googling have come to no solution
make[2]: *** No rule to make target `SDL.lib', needed by `dist/Debug/Cygwin-Windows/zelda.exe'. Stop.

Within netbeans I am using the cgwin c++ compiler, On the cgwin download I included all the development tools so it is not something I have missed out from here ( I can compile raw c++ just fine).
I have also tried reverting the cgwin defalut compiler back to version 3 like suggested on a few guides.
All of my includes and dependences have also been added

Thanks for reading


I suggest you to reinstall the SDL because some of SDL files is missing in program files.

Share this post


Link to post
Share on other sites
Hi SDL is not something you install, its a folder of libs dlls and header files and I downloaded these right off the SDL website (they also work fine using VS). I believe it is something to do with cgwin config.

Thanks for your response though

Share this post


Link to post
Share on other sites
I'm not sure if this is required on NetBeans but you must add SDL.lib and SDLmain.lib to your linker options

Some IDE like codeblocks do this for you while some like VC++ requires you to do it

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!