Author Topic: Setting up SDL with codeblocks not working!  (Read 3893 times)

____casper____

  • Guest
Setting up SDL with codeblocks not working!
« on: April 23, 2022, 12:34:08 pm »
For the last few days ive been trying to setup SDL with codeblocks but i have the same problem everytime, i download the libraries, i extract them to folder, i link them in codeblocks, i type this in tab: other linker options, -lmingw32 -lSDL2main -lSDL2 and when i try to run a program it gives me this error
||=== Build: Debug in SDL testing (compiler: GNU GCC Compiler) ===|
ld.exe||cannot find -lSDL2main|
ld.exe||cannot find -lSDL2|
||error: ld returned 1 exit status|
||=== Build failed: 3 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===
can somebody help me with this please.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7678
    • My Best Post
« Last Edit: April 23, 2022, 02:32:59 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org