Author Topic: ld.exe cannot find -lmwindows  (Read 8461 times)

Offline vurentjie

  • Multiple posting newcomer
  • *
  • Posts: 13
ld.exe cannot find -lmwindows
« on: March 03, 2008, 10:38:35 pm »
hi,

i am trying to get sdl up and running with code::blocks, followed problem solving solutions from undefined reference to [email protected], and added the other linkers

winmm
gdi32
dxguid

then the others

SDLmain
SDL
mingw32
mwindows

but then i get ld.exe cannot find -lmwindows....
i am presuming it is part of Mingw somehow, since ld.exe is in Mingw, but cannot locate it there,
i have even looked through another plain installation of Mingw but can't find it...
what is mwindows......what do i do here?

Offline Belgabor

  • Multiple posting newcomer
  • *
  • Posts: 91
Re: ld.exe cannot find -lmwindows
« Reply #1 on: March 04, 2008, 12:35:46 am »
the l is wrong. It has to be "-mwindows".

Offline Kos

  • Single posting newcomer
  • *
  • Posts: 7
Re: ld.exe cannot find -lmwindows
« Reply #2 on: March 09, 2008, 03:28:38 pm »
You seem to add the parameter -mwindows in wrong place. Everything which you add to the left column ("Link libraries") is prefixed with "-l".
Try like this: