User forums > Using Code::Blocks

Configuring project compilation (example Dislin library)

(1/1)

tuchin:
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
--- End code ---
I need to rearrange in a row -lopengl32 and N:\MyProgramming\Dislin\discpp.a:
--- Code: ---N:\MyProgramming\Dislin\discpp.a -lopengl32
--- End code ---

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

Grit Clef:
In that project's Build Options, use the up and down arrows in Linker Settings->Link Libraries to change their sequence.

tuchin:
Thanks, it worked out.

Navigation

[0] Message Index

Go to full version