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:
Now i try and link it:
gcc -shared -o test.dll dll.o
but gcc end up looking for it in /usr/bin/ld
gcc main-c -L./ -ltest
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).