-
gcc - linking to cwd
I am attempting to make a very simple dll, but I am having trouble linking it. First I compile my dll:
Then I create a shared dll:
Code:
gcc -shared -o test.dll dll.o
Now i try and link it:
Code:
gcc main-c -L./ -ltest
but gcc end up looking for it in /usr/bin/ld
What am I doing wrong here? I thought that -L./ would tell gcc to look for it in the cwd.
-
DLLs are under windows. Unix/Linux uses .so.
-
-
Thanks for the link. Apparently things are done quite a bit differently to what I was trying (Windows style).