Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: tuchin on March 14, 2024, 08:56:46 pm

Title: Configuring project compilation (example Dislin library)
Post by: tuchin 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
Title: Re: Configuring project compilation (example Dislin library)
Post by: Grit Clef 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.
Title: Re: Configuring project compilation (example Dislin library)
Post by: tuchin on March 15, 2024, 09:45:11 pm
Thanks, it worked out.