Results 1 to 2 of 2

Thread: Problem building ClanLib

  1. #1

    Default Problem building ClanLib

    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

  2. #2

    Default I think I found the problem

    After looking more at this problem I discovered that the problem is not with ClanLib but with the MikMod binaries. I am not certain exactly what has happened but the mikmod.h final found in the libmikmod binary has the problem.

Similar Threads

  1. Video in ClanLib
    By d_oilen in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 06-04-2007, 02:52 PM
  2. More on the green line problem, bug in Clanlib?
    By pTymN in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 03-22-2007, 04:43 PM
  3. ClanLib-0.8.0\Tests\NetSessionsTest problem
    By inxbus in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 01-06-2007, 09:11 PM
  4. Error while Building clanDisplay Library
    By thfai2000 in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 12-21-2006, 07:21 PM
  5. Problems building clanGUI
    By mgarcia in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 12-15-2006, 03:22 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •