Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » clang or MinGW (am I doing something wrong or is MinGW acting strangely peculiar?)
clang or MinGW [message #51402] |
Fri, 22 March 2019 00:11 |
|
HI all-
In the past and even now, I run into the most confounded scenarios where MinGW can't find libraries. Let me give you an example-
Based on my memory something like from the command-line:
mingw-compiler-g++.exe -c -fpic file1.c -I/include/path
mingw-compiler-g++.exe -shared -o mylib.dll file1.o -L. -lm etc.
It never pays attention to what I tell it in the search path. I thought -L. says, "hey, look in the current directory!" The search-path kills me.
Trying to be patient, and I am not sure I understand. Is that a correct way to run the compiler and make a DLL file, or am I doing something wrong? I am just wondering if anyone else uses -L. in their shell or IDE, and does it not find things for them as well?
Thnx.- roboloki
|
|
|
Goto Forum:
Current Time: Fri Mar 29 10:30:17 CET 2024
Total time taken to generate the page: 0.00949 seconds
|