Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to Compile DLL?

843829Dec 25 2002 — edited Dec 26 2002
Dear friend,

I tried very hard (couple of days) to create a dll file, which contains 2 C++ file and 2 header file and 2 external thirty-party libraries (*.lib).

When I used the following command to generate *.dll file, some errors happened.

[COMMAND]
cl -Ic:\jdk1.3\include -Id:\jdk1.3\include\win32 -Id:\project\include -Gz -LD main.c exception.c book.lib order.lib /Femain.dll

[After execute the command, the ERRORs]
Creating library main.lib and object main.exp
main.obj : error LNK2001: unresolved external symbol _getFileType@0
........

A bunch of error LNK2001.

Any one has some experience and can give me a hand?

Very Appreciated in advance!!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 23 2003
Added on Dec 25 2002
1 comment
180 views