Author Topic: The project is not being compiled (CodeBlocks and Msys2)  (Read 3148 times)

Offline tumanovalex

  • Multiple posting newcomer
  • *
  • Posts: 29
The project is not being compiled (CodeBlocks and Msys2)
« on: March 24, 2025, 09:27:35 am »
Hello!
When I try to compile a project, I receive messages about library inconsistencies:
g++.exe -LO:\msys64\mingw64\lib -o bin\Debug\cppDislin.exe obj\Debug\cppDislin.o  -m64 O:\MyProgramming\cppDislin\discpp64.a -luser32 -lgdi32 -lopengl32 -m32 
O:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible O:\msys64\mingw64\lib/libuser32.a when searching for -luser32
O:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible O:\msys64\mingw64\lib\libuser32.a when searching for -luser32
......................
The libraries are all 64-bit and I compile the project in 64-bit mode. Project https://disk.yandex.ru/d/YbsNPpbG6Q-nPg
Please tell me how to compile the project correctly.
« Last Edit: March 24, 2025, 09:31:52 am by tumanovalex »

Offline nenin

  • Almost regular
  • **
  • Posts: 233
Re: The project is not being compiled (CodeBlocks and Msys2)
« Reply #1 on: March 24, 2025, 12:12:35 pm »
Here are self-contradictory compiler options:
g++.exe -LO:\msys64\mingw64\lib -o bin\Debug\cppDislin.exe obj\Debug\cppDislin.o  -m64 O:\MyProgramming\cppDislin\discpp64.a -luser32 -lgdi32 -lopengl32 -m32

Offline tumanovalex

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: The project is not being compiled (CodeBlocks and Msys2)
« Reply #2 on: March 24, 2025, 12:58:58 pm »
Thank you very much! Sorry for the carelessness.

Offline Михаил Агарков

  • Single posting newcomer
  • *
  • Posts: 9
  • Highly sensitive programmer. ☮☯
    • Codeberg
Re: The project is not being compiled (CodeBlocks and Msys2)
« Reply #3 on: March 24, 2025, 02:03:57 pm »
Just curious where did you get these compiler flags? If you ran some Makefile then that Makefile is written incorrectly and needs fixing.

Offline tumanovalex

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: The project is not being compiled (CodeBlocks and Msys2)
« Reply #4 on: March 24, 2025, 02:59:13 pm »
Hello, Mikhail!
The mistake was that I accidentally checked the wrong box in the Debug settings. I visited your website, as I understand it, you are actively using Code Blocks. I would like to be able to visit your website and communicate directly (if possible).Hello, Mikhail!
The mistake was that I accidentally checked the wrong box in the Debug settings. I visited your website, as I understand it, you are actively using Code Blocks. I would like to be able to visit your website and communicate directly (if possible).