Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

Error LNK 2001 while makin c dll for usin in java

jyotikiran
Beginner
404 Views
Hi frens,
i am developin an application in java which requires me to use some of the apis which r developed in c.

Now while i complile the c file for usin in java it gets compiled.It also gets executed if i use a main in the program.

But when i try creatin dll for the same program without the main giving the Cl/LD filename.c in the pre compile options of the Microsoft Visual C++ editor it gives me the Lnk2001 Error sayin


IstTest1.obj : error LNK2001: unresolved external symbol _ETUnLink
IstTest1.obj : error LNK2001: unresolved external symbol _ETSocketLink
N so on.

The above functions r declared ina header et1000.h which i have already included in my program.
Also i have included all the other necessory files.
I have also included the necessary lib file n linked it by puttin it in the object/options of the project /settings options of the Microsoft Editor.
Pls tell me wht could b wrong.
Its very urgent.

I really dont understand while executing the same program with main it gets executes fine by includin the header files.
But when i remove the main for makin the dll to b used in the java program it gives me the LNK error.
PLs help....
I'm stucked
0 Kudos
1 Reply
Steven_L_Intel1
Employee
404 Views
This forum is for users of, and questions relating to, Intel Fortran for Windows and Compaq Visual Fortran. I don't see that you're using either of these products - are you?

Steve
0 Kudos
Reply