Results 1 to 3 of 3

Thread: Compiling libcod_win

  1. #1
    ... connecting
    Join Date
    Dec 2020
    Posts
    2
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Compiling libcod_win

    Hi all,

    I am trying to compile https://github.com/M-itch/libcod_win using codeblocks (MingW GCC). However I am having some issues with it. First of all, I am getting
    C:\Users\Built\AppData\Local\Temp\cctoM4yb.s|509|E rror: operand type mismatch for `jmp'|

    When I comment out (just to see what other errors I could be getting) https://github.com/M-itch/libcod_win...tions.cpp#L138 I get
    E:\SteamLibrary\steamapps\common\Call of Duty Modern Warfare 2\stuff\sources\libcod_win\libcod_win\src\gsc_mysq l.cpp|38|undefined reference to `mysql_init'|


    I also needed to add the '-fpermissive' compiler flag as I was getting
    E:\SteamLibrary\steamapps\common\Call of Duty Modern Warfare 2\stuff\sources\libcod_win\libcod_win\src\gsc.cpp| 403|error: cast from 'void*' to 'int' loses precision [-fpermissive]|


    All I did was clone the repo, open with codeblocks and tried building it. What is going on here? How can I compile this? Thanks

  2. The Following User Says Thank You to ineedbots For This Useful Post:

    kung foo man (12th December 2020)

  3. #2
    ... connecting
    Join Date
    Dec 2020
    Posts
    2
    Thanks
    0
    Thanked 2 Times in 2 Posts
    omg Okay, I found out that the MingW that comes with codeblocks is 64bit, I got it working just fine once I used mingw32

  4. The Following User Says Thank You to ineedbots For This Useful Post:

    kung foo man (12th December 2020)

  5. #3
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    A 64-bit compiler doesn't work, because CoD and the mysql dll are both 32-bit.
    Therefore the weird errors.

  6. The Following User Says Thank You to Mitch For This Useful Post:

    kung foo man (12th December 2020)

Posting Permissions

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