Author Topic: cannot build and run program, error message: ld.exe | cannot find -lSDLmain  (Read 3835 times)

oyasellya

  • Guest
hi, i'm new here :)
I've been using codeblocks for about three months and this is my first problem while build and run program.
i just made a simple "hello world" program, not an sdl project, but end up only with this error:

ld.exe     cannot find -lSDLmain

i've search the internet for the solution but i just don't get it (sorry, i'm a newbie :))
thank you for your answer

Online stahta01

  • Lives here!
  • ****
  • Posts: 6732
    • My Best Post
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org