-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assembly Compilation error #1
Comments
Good spot, I've just pushed a change |
Nice, Also on graphic.asm you have: But they should be: After these changes the assembly compiles. |
About the C and CPP version you have in CMakeLists.txt: target_link_libraries(cpp_game PRIVATE SDL2d m pthread dl) The SDL2d is the debug library. When i execute: cmake .. to generate the make files and use make to download and compile the SDL2 library. It produces the release version and not the debug version. This makes that the following changes fixed it for me. target_link_libraries(cpp_game PRIVATE SDL2 m pthread dl) |
@IamLupo My Pull Request for adding support for building on Win32/Visual studio also addresses the issue you mention above about the debug vs release versions of the SDL library on Ubuntu 22.04. |
I tried to compile your project on my Ubuntu 22.04. And i gained the following error:
[ 96%] Building ASM_NASM object asm/CMakeFiles/asm_game.dir/utils.asm.o
/var/www/asm_c_cpp/asm/utils.asm:103: error: expected `,'
Looking at this code it looks like this:
reverse_loop_start:
cmp rcx, 0x
Shouldnt the 0x be something like 0x0?
The text was updated successfully, but these errors were encountered: