[hatari-devel] CMake build system

Thomas H. th.huth at gmx.de
Sat Jan 16 22:30:35 CET 2010


> Datum: Sat, 16 Jan 2010 13:37:19 +0100
> Von: Matthias Arndt <marndt at asmsoftware.de>
> 
> I get the following unresolved externals at link time with CMake but
> with the oldstyle Makefiles it works ok.
> 
> -- CMake output as follows --
> 
> Linking C executable hatari
> debug/libDebug.a(debugcpu.c.o): In function
> `DebugCpu_MatchAddress':debugcpu.c:(.text+0x65b): undefined reference to
> `Symbols_MatchByName'
> debug/libDebug.a(debugcpu.c.o): In function
> `DebugCpu_BreakPoint':debugcpu.c:(.text+0x69a): undefined reference to
> `Symbols_MatchByName'
> debug/libDebug.a(debugcpu.c.o): In function
> `DebugCpu_LoadSymbols':debugcpu.c:(.text+0x9fb): undefined reference to
> `Symbols_Free'
> :debugcpu.c:(.text+0xa10): undefined reference to `Symbols_Load'
> :debugcpu.c:(.text+0xa3b): undefined reference to `Symbols_ShowByName'
> :debugcpu.c:(.text+0xa98): undefined reference to
> `Symbols_ShowByAddress'
> collect2: ld gab 1 als Ende-Status zurück
> make[2]: *** [src/hatari] Fehler 1
> make[1]: *** [src/CMakeFiles/hatari.dir/all] Fehler 2
> make: *** [all] Fehler 2
> 
> Any ideas?

Eero recently introduced a new file, symbols.c, to the source tree, that was not listed in the CMakeLists.txt file yet. I've added it now so that this should now be working, too.

 Thomas



More information about the hatari-devel mailing list