Whenever I put my dll files in the same directory as my main.cpp and use this code,it works.Code:g++ main.cpp -L. -lMyDll
but if my dll files are in the other directory,it won't work. Why is this not working?Code:g++ main.cpp -L/myDlls -lMyDll