2

I use VS2017 and want to create a C++ programm which needs a library for a microcontroller.

  1. I downloaded the library from the companies website, unpacked the folder and copied it into my project folder.
  2. Next step was Properties > C/C++ > Additional Include Directories and inserted the path to the folder where the *.h file is located.
  3. Then Linker > Additional Library Directories > General and inserted the path which leads to the folder where the *.lib file is stored.
  4. Afterwards Linker > Input > Additional Dependencies here I filled in the name of my *.lib file (like "xyz.lib")
  5. Finally I moved the *.dll file in the Debug-Folder.

(I don't know if this is an relevant information, but the *.h and *.lib file are in the same folder.)

The problem I'm facing right now is an error when I want to Debug my programm. The Error Message says:

"The application was unable to start correctly (0xc000007b). Click OK to close the application."

I did some research and found out that this is often linked to an missing *.dll file, so I used the programm Dependencies to analyse my executable file. Surprisingly the programm shows that my included *.dll file is missing.

At this point I'm stuck. I looked at several websites to find a solution but none of then could help me.

UPDATE: I'm able to build my project succesfully, but not to debug it. I don't know if this might help.

What are some measures to fix this error? Any thoughts on this? Thank you in advance.

21
  • The message box should tell you which dll is missing, just put it alongside your executable. Feb 12, 2019 at 14:28
  • @MatthieuBrucher The message box just says "The thread 0x317c has exited with code -1073741701 (0xc000007b). The program '[12424] BitScope_Micro_v1.2.exe' has exited with code -1073741701 (0xc000007b)." And this is the only external .dll file I use, and it is next to my executable.
    – David9472
    Feb 12, 2019 at 14:32
  • In that case, it's not because it cannot find the dll. It may be that it's the wrong version of the dll, failing during startup? Feb 12, 2019 at 14:33
  • @MatthieuBrucher what do you mean with wrong version? I just changed the environment settings to 64-bit and I get an error that the library type conflicts with machine type. So I am pretty sure the version is correct
    – David9472
    Feb 12, 2019 at 14:42
  • I mean does the .lib match the .dll version. Or could there be another conflict between global variables in the two? Feb 12, 2019 at 14:44

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.