Skip to main content
GameDev.net gamedev.net
🔒 Locked

SDL netbeans error

Started by maxfire Oct 19, 2011 at 9:18 AM 2 replies 1.4k views
Original Post
maxfire
maxfire
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
tomsoftmedia
tomsoftmedia

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.
Tr?nh Nh?t Quang - LightSource Team
maxfire
maxfire
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
chosenkill6
chosenkill6
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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.