User forums > Help

[SOLVED] Debugger fails to start

<< < (2/3) > >>

sodev:
I don't see an error message there, i just see that your program terminates with exit code 1 :).

oBFusCATed:
This happens when the dynamic loader doesn't find a dll.

neonBdragon:

--- Quote from: oBFusCATed on April 10, 2018, 05:00:00 pm ---This happens when the dynamic loader doesn't find a dll.

--- End quote ---
Is there some way for me to provide the path of the dll to the dynamic loader?

neonBdragon:

--- Quote from: sodev on April 10, 2018, 04:55:49 pm ---The path variable comes from windows, you cannot easily modify that from CodeBlocks, you can maybe overwrite it to be empty, but its better to clean your path variable in windows.

But i don't think this has an effect on CodeBlocks, better check your settings again, are you really compiling your program with the toolchain you think you are? Check the build log to be sure.

--- End quote ---
I rebuilt my program and the log said I am using mingw32.

Here are some lines from the build log.

--- Code: ---mingw32-g++.exe -Wall -fexceptions -Weffc++ -g -Weffc++ -g -Iinclude -c E:\myStuff\Programming\C++\Practice\codeBlocks\DataCleaner\main.cpp -o obj\Debug\main.o
mingw32-g++.exe -Wall -fexceptions -Weffc++ -g -Weffc++ -g -Iinclude -c E:\myStuff\Programming\C++\Practice\codeBlocks\DataCleaner\src\jsonParser.cpp -o obj\Debug\src\jsonParser.o
mingw32-g++.exe  -o bin\Debug\DataCleaner.exe obj\Debug\main.o obj\Debug\src\jsonParser.o   
In file included from E:\myStuff\Programming\C++\Practice\codeBlocks\DataCleaner\main.cpp:3:0:


--- End code ---

oBFusCATed:

--- Quote from: neonBdragon on April 10, 2018, 11:59:11 pm ---Is there some way for me to provide the path of the dll to the dynamic loader?

--- End quote ---
Yes, you have to modify the path env variable...
But first you need to know which dll is failing to load. This is the hard part!
Try to start the exe from explorer and see if there is an error message.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version