jtaylor1126
03-30-2007, 11:09 AM
I am building ClanLib 0.8.0 using Visual C++ Express. I keep getting the following error message when I am building all of the projects using the batch build process.
------ Build started: Project: clanMikMod, Configuration: Static MTDLL Release Win32 ------
Compiling...
module_reader.cpp
soundprovider_mikmod_session.cpp
soundprovider_mikmod.cpp
setupmikmod.cpp
Generating Code...
Creating library...
Installing library and API headers...
Build log was saved at "file://c:\Development\ClanLib\ClanLib-0.8.0\Release\clanMikMod-static-mtdll\BuildLog.htm"
clanMikMod - 0 error(s), 0 warning(s)
------ Build started: Project: clanMikMod, Configuration: Static MT Release Win32 ------
Compiling...
module_reader.cpp
C:\Development\ExternalLibraries\include\mikmod.h( 49) : fatal error C1016: #if[n]def expected an identifier
soundprovider_mikmod_session.cpp
C:\Development\ExternalLibraries\include\mikmod.h( 49) : fatal error C1016: #if[n]def expected an identifier
soundprovider_mikmod.cpp
C:\Development\ExternalLibraries\include\mikmod.h( 49) : fatal error C1016: #if[n]def expected an identifier
setupmikmod.cpp
C:\Development\ExternalLibraries\include\mikmod.h( 49) : fatal error C1016: #if[n]def expected an identifier
Generating Code...
Build log was saved at "file://c:\Development\ClanLib\ClanLib-0.8.0\Release\clanMikMod-static-mt\BuildLog.htm"
clanMikMod - 4 error(s), 0 warning(s)
------ Build started: Project: clanMikMod, Configuration: Static MTDLL Debug Win32 ------
Compiling...
module_reader.cpp
soundprovider_mikmod_session.cpp
soundprovider_mikmod.cpp
setupmikmod.cpp
Generating Code...
Creating library...
Installing library and API headers...
Build log was saved at "file://c:\Development\ClanLib\ClanLib-0.8.0\Debug\clanMikMod-static-mtdll\BuildLog.htm"
clanMikMod - 0 error(s), 0 warning(s)
------ Build started: Project: clanMikMod, Configuration: Static MT Debug Win32 ------
Compiling...
module_reader.cpp
C:\Development\ExternalLibraries\include\mikmod.h( 49) : fatal error C1016: #if[n]def expected an identifier
soundprovider_mikmod_session.cpp
C:\Development\ExternalLibraries\include\mikmod.h( 49) : fatal error C1016: #if[n]def expected an identifier
soundprovider_mikmod.cpp
C:\Development\ExternalLibraries\include\mikmod.h( 49) : fatal error C1016: #if[n]def expected an identifier
setupmikmod.cpp
C:\Development\ExternalLibraries\include\mikmod.h( 49) : fatal error C1016: #if[n]def expected an identifier
Generating Code...
Build log was saved at "file://c:\Development\ClanLib\ClanLib-0.8.0\Debug\clanMikMod-static-mt\BuildLog.htm"
clanMikMod - 4 error(s), 0 warning(s)
========== Build: 2 succeeded, 2 failed, 44 up-to-date, 0 skipped ==========
When I go look at the file mikmod.h here is what is found at those lines:
/*
* ========== Compiler magic for shared libraries
*/
#if defined WIN32 && defined _DLL
#ifdef DLL_EXPORTS
#define MIKMODAPI __declspec(dllexport)
#else
#define MIKMODAPI __declspec(dllimport)
#endif
#elif !defined _DLL && defined WIN32
#ifdef !defined _DEBUG
#pragma comment(lib, "mikmod-static-mt-debug.lib")
#else
#pragma comment(lib, "mikmod-static-mt.lib")
#endif
#else
#define MIKMODAPI
#endif
I cannot seem to find where the problem is.... when I first looked at the code the line that now is
#elif !defined _DLL && defined WIN32
was
#elsif !defined _DLL && defined WIN32
but that caused an error that #elsif is an ivalid directive....
Jeff
------ Build started: Project: clanMikMod, Configuration: Static MTDLL Release Win32 ------
Compiling...
module_reader.cpp
soundprovider_mikmod_session.cpp
soundprovider_mikmod.cpp
setupmikmod.cpp
Generating Code...
Creating library...
Installing library and API headers...
Build log was saved at "file://c:\Development\ClanLib\ClanLib-0.8.0\Release\clanMikMod-static-mtdll\BuildLog.htm"
clanMikMod - 0 error(s), 0 warning(s)
------ Build started: Project: clanMikMod, Configuration: Static MT Release Win32 ------
Compiling...
module_reader.cpp
C:\Development\ExternalLibraries\include\mikmod.h( 49) : fatal error C1016: #if[n]def expected an identifier
soundprovider_mikmod_session.cpp
C:\Development\ExternalLibraries\include\mikmod.h( 49) : fatal error C1016: #if[n]def expected an identifier
soundprovider_mikmod.cpp
C:\Development\ExternalLibraries\include\mikmod.h( 49) : fatal error C1016: #if[n]def expected an identifier
setupmikmod.cpp
C:\Development\ExternalLibraries\include\mikmod.h( 49) : fatal error C1016: #if[n]def expected an identifier
Generating Code...
Build log was saved at "file://c:\Development\ClanLib\ClanLib-0.8.0\Release\clanMikMod-static-mt\BuildLog.htm"
clanMikMod - 4 error(s), 0 warning(s)
------ Build started: Project: clanMikMod, Configuration: Static MTDLL Debug Win32 ------
Compiling...
module_reader.cpp
soundprovider_mikmod_session.cpp
soundprovider_mikmod.cpp
setupmikmod.cpp
Generating Code...
Creating library...
Installing library and API headers...
Build log was saved at "file://c:\Development\ClanLib\ClanLib-0.8.0\Debug\clanMikMod-static-mtdll\BuildLog.htm"
clanMikMod - 0 error(s), 0 warning(s)
------ Build started: Project: clanMikMod, Configuration: Static MT Debug Win32 ------
Compiling...
module_reader.cpp
C:\Development\ExternalLibraries\include\mikmod.h( 49) : fatal error C1016: #if[n]def expected an identifier
soundprovider_mikmod_session.cpp
C:\Development\ExternalLibraries\include\mikmod.h( 49) : fatal error C1016: #if[n]def expected an identifier
soundprovider_mikmod.cpp
C:\Development\ExternalLibraries\include\mikmod.h( 49) : fatal error C1016: #if[n]def expected an identifier
setupmikmod.cpp
C:\Development\ExternalLibraries\include\mikmod.h( 49) : fatal error C1016: #if[n]def expected an identifier
Generating Code...
Build log was saved at "file://c:\Development\ClanLib\ClanLib-0.8.0\Debug\clanMikMod-static-mt\BuildLog.htm"
clanMikMod - 4 error(s), 0 warning(s)
========== Build: 2 succeeded, 2 failed, 44 up-to-date, 0 skipped ==========
When I go look at the file mikmod.h here is what is found at those lines:
/*
* ========== Compiler magic for shared libraries
*/
#if defined WIN32 && defined _DLL
#ifdef DLL_EXPORTS
#define MIKMODAPI __declspec(dllexport)
#else
#define MIKMODAPI __declspec(dllimport)
#endif
#elif !defined _DLL && defined WIN32
#ifdef !defined _DEBUG
#pragma comment(lib, "mikmod-static-mt-debug.lib")
#else
#pragma comment(lib, "mikmod-static-mt.lib")
#endif
#else
#define MIKMODAPI
#endif
I cannot seem to find where the problem is.... when I first looked at the code the line that now is
#elif !defined _DLL && defined WIN32
was
#elsif !defined _DLL && defined WIN32
but that caused an error that #elsif is an ivalid directive....
Jeff