User forums > Help

[not SOLVED] How do I change specific files compiling policy from Code::Blocks?

(1/2) > >>

iQChange:
I have a project. For some files, instead of standard compilation process, I want to build them with some other flags. How do I do it?

MortenMacFly:
Right click on the file, properties and have a look how to adjust.

iQChange:
Thank you so much!

iQChange:
My wish is to get a dll from one file and with the other's code, call functions inside it (dynamic loading).
Anyway, I must change the way it's built. It runs

--- Code: ---g++.exe -shared -std=c++14 C:\proj\cpp\test\test_project\test.cpp -Wall -fexceptions -o test.dll
g++.exe  -o bin\Debug\test_project.exe obj\Debug\main.o obj\Debug\test.o   

--- End code ---

But I don't want to create an invalid test_project.exe. I want to get the rid of test.o. How do I do it?

stahta01:
Create a separate CB target to create the DLL.

Tim S.

Navigation

[0] Message Index

[#] Next page

Go to full version