-------------- Build: Debug in SlickyEngine ---------------
mingw32-g++.exe -Wall -Iinclude -IDependencies\physfs\include -IDependencies\Angelscript\include -Iinclude -c src\Matrix4.cpp -o obj\Debug\src\Matrix4.o
mingw32-g++.exe -Wall -Iinclude -IDependencies\physfs\include -IDependencies\Angelscript\include -Iinclude -c src\Root.cpp -o obj\Debug\src\Root.o
mingw32-g++.exe -Wall -Iinclude -IDependencies\physfs\include -IDependencies\Angelscript\include -Iinclude -c src\ScriptManager.cpp -o obj\Debug\src\ScriptManager.o
mingw32-g++.exe -Wall -Iinclude -IDependencies\physfs\include -IDependencies\Angelscript\include -Iinclude -c src\Vector4.cpp -o obj\Debug\src\Vector4.o
mingw32-g++.exe -Wall -Iinclude -IDependencies\physfs\include -IDependencies\Angelscript\include -Iinclude -c src\FileSystem.cpp -o obj\Debug\src\FileSystem.o
mingw32-g++.exe -shared -Wl,--output-def=lib\Debug\libSlickyEngine_d.def -Wl,--out-implib=lib\Debug\libSlickyEngine_d.a -Wl,--dll -L"C:\Dokumente und Einstellungen\stefan\Desktop\cb\MinGW\lib" obj\Debug\src\Matrix4.o obj\Debug\src\Root.o obj\Debug\src\ScriptManager.o obj\Debug\src\Vector4.o obj\Debug\src\FileSystem.o -o lib\Debug\SlickyEngine_d.dll Dependencies\physfs\physfs_static_debug\libphysfs_static.a Dependencies\Angelscript\lib\libangelscriptd.a
Creating library file: lib\Debug\libSlickyEngine_d.a
-------------- Build: Debug in SlickyTest ---------------
mingw32-g++.exe -Wall -g -I..\SlickyEngine\Dependencies\physfs\include -I..\SlickyEngine\Dependencies\Angelscript\include -I..\SlickyEngine\include -c main.cpp -o obj\Debug\main.o
mingw32-g++.exe -L"C:\Dokumente und Einstellungen\stefan\Desktop\cb\MinGW\lib" -o .\SlickyTest.exe obj\Debug\main.o ..\SlickyEngine\lib\Debug\libSlickyEngine_d.a ..\SlickyEngine\lib\Debug\libSlickyEngine_d.a
obj\Debug\main.o: In function `main':
D:/SlickyTest/main.cpp:12: undefined reference to `FileSystem::GetSingleton()'
D:/SlickyTest/main.cpp:13: undefined reference to `FileSystem::Init(char**)'
D:/SlickyTest/main.cpp:15: undefined reference to `FileSystem::GetBaseDir()'
D:/SlickyTest/main.cpp:16: undefined reference to `FileSystem::AddSearchPath(std::string, int)'
D:/SlickyTest/main.cpp:17: undefined reference to `FileSystem::AddSearchPath(std::string, int)'
D:/SlickyTest/main.cpp:18: undefined reference to `FileSystem::AddSearchPath(std::string, int)'
D:/SlickyTest/main.cpp:19: undefined reference to `FileSystem::GetSearchPath()'
D:/SlickyTest/main.cpp:20: undefined reference to `FileSystem::Exists(std::string)'
D:/SlickyTest/main.cpp:21: undefined reference to `FileSystem::OpenReadTextFile(std::string)'
D:/SlickyTest/main.cpp:23: undefined reference to `FileSystem::DeInit()'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 10 seconds)
10 errors, 0 warnings
..\SlickyEngine\lib\Debug\libSlickyEngine_d.a ..\SlickyEngine\lib\Debug\libSlickyEngine_d.a
Hmm strange...
// Create the script engine
mEngine = asCreateScriptEngine(ANGELSCRIPT_VERSION);
if( mEngine == 0 )
{
std::cout << "Failed to create script engine." << std::endl;
return -1;
}
When I comment out this code everything works and links fine. My def file has alot more entries then.
I never had such a problem before.