-
3rd December 2020, 17:47
#1
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
-
The Following User Says Thank You to ineedbots For This Useful Post:
kung foo man (12th December 2020)
-
4th December 2020, 23:02
#2
omg Okay, I found out that the MingW that comes with codeblocks is 64bit, I got it working just fine once I used mingw32
-
The Following User Says Thank You to ineedbots For This Useful Post:
kung foo man (12th December 2020)
-
5th December 2020, 06:51
#3
Global Mossaderator
A 64-bit compiler doesn't work, because CoD and the mysql dll are both 32-bit.
Therefore the weird errors.
-
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
-
Forum Rules