User forums > General (but related to Code::Blocks)
cannot build and run program, error message: ld.exe | cannot find -lSDLmain
(1/1)
oyasellya:
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
stahta01:
Remove the library SDLMain from the linker options.
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_I_would_like_to_compile_a_project_using_some_non-standard_libraries._How_can_I_indicate_to_CodeBlocks_that_these_libraries_and_include_files_exist.3F
Tim S.
Navigation
[0] Message Index
Go to full version