Author Topic: Configuring project compilation (example Dislin library)  (Read 2715 times)

Offline tuchin

  • Multiple posting newcomer
  • *
  • Posts: 15
Configuring project compilation (example Dislin library)
« on: March 14, 2024, 08:56:46 pm »
After the project settings, the compilation lines look like:
Code
g++.exe -Wall -m64 -fexceptions -std=c++20 -g -Wall  -c N:\MyProgramming\Dislin\exa_cpp.cpp -o obj\Debug\exa_cpp.o
g++.exe  -o bin\Debug\Dislin.exe obj\Debug\exa_cpp.o  -m64 -lopengl32  N:\MyProgramming\Dislin\discpp.a
I need to rearrange in a row -lopengl32 and N:\MyProgramming\Dislin\discpp.a:
Code
N:\MyProgramming\Dislin\discpp.a -lopengl32

Can you tell me how to do this? The project https://disk.yandex.ru/d/kc0-onWyk-Tr5g

Offline Grit Clef

  • Multiple posting newcomer
  • *
  • Posts: 107
  • Where there is a will, there is a way.
Re: Configuring project compilation (example Dislin library)
« Reply #1 on: March 15, 2024, 12:35:11 pm »
In that project's Build Options, use the up and down arrows in Linker Settings->Link Libraries to change their sequence.
-Windows 7, 32-bit
-CodeBlocks r13542, gcc 14.2.0, debug version

Offline tuchin

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: Configuring project compilation (example Dislin library)
« Reply #2 on: March 15, 2024, 09:45:11 pm »
Thanks, it worked out.