Hello everyone,
I am trying to create a DLL from one .c file. I need to link the .c file to two directories in my C drive when building, and I must compile this in a Windows environment without access to Visual Studio.
On Linux, I was able to create a shared object that worked correctly in my program with these commands:
gcc -c -I/usr/lib/jvm/java-6-openjdk/include/ -I/usr/lib/jvm/java-6-openjdk/include/linux BERViewerImp.c
and
ld -G BERViewerImp.o -o libBERViewerInterface.so -lm -lc -lpthread
Now, I need to compile the same source as a DLL in a Windows environment using the equivalent Windows directories. I am currently trying to use CCS to build the DLL; I found the below link that tells me to create a linker command file with a line to generate my DLL.
http://processors.wiki.ti.com/index.php/C6000_Dynamic_Linking#Building_a_Dynamic_Library
Is this the correct approach, or am I missing a simple way to create a DLL (in CCS or another program)?
Thank you,
Brooke