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?
Right click on the file, properties and have a look how to adjust.
Thank you so much!
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
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
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?
Create a separate CB target to create the DLL.
Tim S.
Look in project->settings under build targets (or something with target)
iQChange:
You can disable linking of test.cpp. It is not recommended to do it this way, because this is not the way the build system is designed to work.
You are abusing it. So it is better to have two targets one for the dll and one for the executable as stahta01 suggested.