Problem on CLION with CURL

已回答

Hello, 

i have a problem when i'm trying to use curl on Clion with a C++ project, indeed when i launch the project he just crashed like that : 

This is my code :

 

This is my Cmake : 

Someone can help me pls? 

1

Hello!

In case of dynamic libraries:

Unless the DLL is a Component Object Model (COM) server, the DLL file must be placed in one of the directories listed in the PATH environment variable, in the default system directory, or in the same directory as the program using it.

The quote is from Wikipedia - https://en.wikipedia.org/wiki/Dynamic-link_library#C_and_C++.

You can either copy the libraries next to your executable (into the cmake-build-debug folder),

or you can go to Run | Edit Configurations ..., open your run/debug configuration, click on the "Browse" button in the Environment variables field, in the opened window find the "Path" variable and edit its value by adding D:\lib\curl-7.70.0-win32-mingw\lib; (mind semicolon!) in the beginning of the list, save changes.

1
Avatar
Permanently deleted user

Hello !

 

Thanks you so much that works!

0

It worked! Thank You very much

0

请先登录再写评论。