Vista 64 bit

Hello, my name is Lars,

due a hardware crash I had to change to a new computer.
I decided for a VISTA 64 Bit system.

That causes problems. Before (XP SP3/mingw/msys) everything was perfect.

Now msys seems not to link to the gcc compiler.

when I tried a change to Visual studio 2009 express, I cannot compile.
Its said that there is a problem with SDL_main. Unfortunately the error message is in German :frowning:

When I run my old compiled games, they run. This means for me that the .ddl s are in the right directory.

Has anyone a suggestion how I can get any SDK running as easy as possible?

Thank you,
Lars

I know this will not help, but I haven’t had any issues running Vista
64bit on most SDK I have used… So I can only assume you’re missing
something…

Best of Luck.

Lars Br?mer wrote:> Hello, my name is Lars,

due a hardware crash I had to change to a new computer.
I decided for a VISTA 64 Bit system.

That causes problems. Before (XP SP3/mingw/msys) everything was perfect.

Now msys seems not to link to the gcc compiler.

when I tried a change to Visual studio 2009 express, I cannot compile.
Its said that there is a problem with SDL_main. Unfortunately the
error message is in German :frowning:

When I run my old compiled games, they run. This means for me that the
.ddl s are in the right directory.

Has anyone a suggestion how I can get any SDK running as easy as possible?

Thank you,
Lars


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

Hello

I know this will not help, but I haven’t had any issues running Vista 64bit
on most SDK I have used… So I can only assume you’re missing something…

I agree, I think I am doing something wrong. Reading all instructions didnt
help.

msys seems not to link with mingw because gcc --version brings only results
if I am in the
directory of mingw/bin itself.

Visual C/C++ 20009 express brings up _sdl fatal error LNK1120: SDL_main
error in _main
for a programm that did compile on my old computer (XP/SP3/mingw/msys)

Can you recommend me a sdk which easy to setup?

Lars

I am assuming you selected the console app for SDL…

Did you put the SDL SDK in the path under the build directories? And the
include dir?

Looks as if VC++ can’t find those files or libs it needs.

Lars Br?mer wrote:> Hello

I know this will not help, but I haven’t had any issues running Vista
64bit on most SDK I have used… So I can only assume you’re missing
something…

I agree, I think I am doing something wrong. Reading all instructions
didnt help.

msys seems not to link with mingw because gcc --version brings only
results if I am in the
directory of mingw/bin itself.

Visual C/C++ 20009 express brings up _sdl fatal error LNK1120:
SDL_main error in _main
for a programm that did compile on my old computer (XP/SP3/mingw/msys)

Can you recommend me a sdk which easy to setup?

Lars


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

re…

I am assuming you selected the console app for SDL…
yes, indeed

Did you put the SDL SDK in the path under the build directories? And the
include dir?

yes, I linkes the libs and the includes, but I agree it seems the cannot
find the libs.

Bye,
Lars

Can you show us the full error message you are getting?On Sun, Oct 11, 2009 at 4:13 PM, Lars Br?mer wrote:

yes, I linkes the libs and the includes, but I agree it seems the cannot
find the libs.

Thank you for taking care!

For visual studio it is
1>------ Erstellen gestartet: Projekt: zarkon9, Konfiguration: Debug
Win32 ------
1>Verkn?pfen…
1>SDLmain.lib(SDL_win32_main.obj) : error LNK2019: Verweis auf nicht
aufgel?stes externes Symbol “_SDL_main” in Funktion “_main”.
1>C:\Users\Lars\Documents\Visual Studio
2008\Projects\zarkon9\Debug\zarkon9.exe : fatal error LNK1120: 1 nicht
aufgel?ste externe Verweise.
1>Das Buildprotokoll wurde unter “file://c:\Users\Lars\Documents\Visual
Studio 2008\Projects\zarkon9\zarkon9\Debug\BuildLog.htm” gespeichert.
1>zarkon9 - 2 Fehler, 0 Warnung(en)
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 ?bersprungen==========

In the BuildLog.htm you can read:

Die tempor?re Datei “c:\Users\Lars\Documents\Visual Studio
2008\Projects\zarkon9\zarkon9\Debug\RSP0000024085760.rsp” wird erstellt.
Inhalt:
[
/OUT:“C:\Users\Lars\Documents\Visual Studio
2008\Projects\zarkon9\Debug\zarkon9.exe” /INCREMENTAL /MANIFEST
/MANIFESTFILE:“Debug\zarkon9.exe.intermediate.manifest”
/MANIFESTUAC:“level=‘asInvoker’ uiAccess=‘false’” /DEBUG
/PDB:“C:\Users\Lars\Documents\Visual Studio
2008\Projects\zarkon9\Debug\zarkon9.pdb” /SUBSYSTEM:WINDOWS /DYNAMICBASE
/NXCOMPAT /MACHINE:X86 SDLmain.lib SDL.lib kernel32.lib user32.lib gdi32.lib
winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib
uuid.lib odbc32.lib odbccp32.lib

“.\Debug\stdafx.obj”

“.\Debug\zarkon9.obj”

“.\Debug\zarkon9.exe.embed.manifest.res”
]Erstellen der Befehlszeile “link.exe @“c:\Users\Lars\Documents\Visual
Studio 2008\Projects\zarkon9\zarkon9\Debug\RSP0000024085760.rsp” /NOLOGO
/ERRORREPORT:PROMPT”

Ausgabefenster

Verkn?pfen…
SDLmain.lib(SDL_win32_main.obj) : error LNK2019: Verweis auf nicht
aufgel?stes externes Symbol “_SDL_main” in Funktion “_main”.
C:\Users\Lars\Documents\Visual Studio
2008\Projects\zarkon9\Debug\zarkon9.exe : fatal error LNK1120: 1 nicht
aufgel?ste externe Verweise.

Ergebnisse

Das Buildprotokoll wurde unter “file://c:\Users\Lars\Documents\Visual Studio
2008\Projects\zarkon9\zarkon9\Debug\BuildLog.htm” gespeichert.

For msys I can now compile but not link. Unfortunately I dont know how to
cut an paste in Msys.

Bye,
Lars

It sounds like you aren’t defining SDL_main(). Does your main() follow
the correct signature (int main(int, char**)). Does the file defining
main() #include “SDL.h” so that main() gets correctly redefined to
SDL_main()?

2009/10/11 Lars Br?mer :> Thank you for taking care!

If ‘gcc --version’ only works in when you’re in the right directory,
you might have to add that directory to your PATH environment variable
or something.

Jonny DOn Sun, Oct 11, 2009 at 10:36 AM, Lars Br?mer wrote:

Hello

I know this will not help, but I haven’t had any issues running Vista
64bit on most SDK I have used… So I can only assume you’re missing
something…

I agree, I think I am doing something wrong. Reading all instructions didnt
help.

msys seems not to link with mingw because gcc --version brings only results
if I am in the
directory of mingw/bin itself.

Visual C/C++ 20009 express brings up _sdl fatal error LNK1120: ? SDL_main
error in _main
for a programm that did compile on my old computer (XP/SP3/mingw/msys)

Can you recommend me a sdk which easy to setup?

Lars


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

re,

It sounds like you aren’t defining SDL_main(). Does your main() follow
the correct signature (int main(int, char**)). Does the file defining
main() #include “SDL.h” so that main() gets correctly redefined to
SDL_main()?

yes, I did. The program did compile on a xp computer , using mingw ans msys.
I am can now even compile using mingw and msys, but I cannot link.

bye,
Lars

If ‘gcc --version’ only works in when you’re in the right directory,
you might have to add that directory to your PATH environment variable
or something.

Jonny D

yes, I did now and I did also a mistake with the directories.
Now I can compile but not link.

bye,
Lars