Undefined reference to `SDL_Init'

I try runing the Example 1-1 of the SDL Library Documentation, Chapter 1. The
Basics.
I Work in Windows XP, AMD64, MinGW Developer Studio.
The bug: undefined reference to 'SDL_Init’
The include files, the *.dll file and lib files I put in your place.
Can you help me? Please.

Thank you,

Nelson M.M.

Nelson Moreno Machado wrote:

I try runing the Example 1-1 of the SDL Library Documentation, Chapter 1. The
Basics.
I Work in Windows XP, AMD64, MinGW Developer Studio.
The bug: undefined reference to 'SDL_Init’
The include files, the *.dll file and lib files I put in your place.
Can you help me? Please.

We would like to help, but there isn’t enough information to work
on. Please read the following:

http://www.catb.org/~esr/faqs/smart-questions.html

HTH,–
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia

Hi
I don’t have your set up but when you start playing with SDL, you need
the DLL’s in your programs execute directory, and you need to link against
the library’s . lib files.

so typical set up would be add the SDL/include directory to your project.
(compile)
add the SDL/lib directory to your project (link) or where your library’s are
put your SDL Dll’s in your program directory (i found on VS it was the
project directory and not the Debug Dir)

when i started using SDL it took a few days so however long it takes to get
your set up working it will be worth it as once you have the basics its a
dream to develop with SDL. so stick with it.

I hope that helps

Trish

Hi…
(i use devcpp on windowsxp amd machine…)

open the project options and parameters tab…Then write that::
-lmingw32 -lSDLmain -lSDL (the order is important)

then ,if you want ,add the following :: -lopengl32 -lglu32 …

2007/3/19, Kein-Hong Man :>

Nelson Moreno Machado wrote:

I try runing the Example 1-1 of the SDL Library Documentation, Chapter

  1. The

Basics.
I Work in Windows XP, AMD64, MinGW Developer Studio.
The bug: undefined reference to 'SDL_Init’
The include files, the *.dll file and lib files I put in your place.
Can you help me? Please.

We would like to help, but there isn’t enough information to work
on. Please read the following:

http://www.catb.org/~esr/faqs/smart-questions.html

HTH,

Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Just say the words , your wish is my command…