Results 1 to 2 of 2

Thread: Help with this fatal error

  1. #1
    Join Date
    Mar 2011

    Default Help with this fatal error

    Ok. So i set up ClanLib for MSVC 2010 following thistutorial

    when i try to build the file i get this error.

    clanCore-static-mt-debug.lib(console.obj) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'

    The code i am trying to compile is as follows:

    #include <ClanLib/core.h>
    #include <ClanLib/application.h>
    class ConsoleProgram
       static int main(const std::vector<CL_String> &args)
           CL_SetupCore setup_core;
           CL_ConsoleWindow console_window("Console", 80, 200);
           CL_String now = CL_DateTime::get_current_local_time().to_short_datetime_string();
           CL_Console::write_line("At %1, we say Hello ClanLib!", now);
           return 0;
    // Create global application object, you MUST include this line or
    // the application start-up will fail to locate your application object.
    CL_ClanApplication app(&ConsoleProgram::main);

  2. #2
    ClanLib Developer
    Join Date
    May 2007



    If you are using 64 bit versions of ClanLib, you need to change the Platform combobox to x64 and modify the Include and Libs directories there as well.
    Either you forgot to do this, or you used "C:\Source\ClanLib\lib\win32" on the x64 target, instead of "C:\Source\ClanLib\lib\x64"

    Or maybe you used "C:\Source\ClanLib\lib\x64" on the win32 target

    Personally, I would not use x64, unless you require the x64 features. You application is more portable.

Similar Threads

  1. fatal error LNK1104: cannot open file 'dinput8.lib'
    By epishev in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 02-19-2011, 10:41 AM
  2. Replies: 5
    Last Post: 07-06-2009, 01:35 PM



Posting Permissions

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