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
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?
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
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?
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)
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)
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.
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)
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.
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.