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 -Wall -c dll.c
Now i try and link it:Code:gcc -shared -o test.dll dll.o
but gcc end up looking for it in /usr/bin/ldCode: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.