lugan2
Mechanical
- Apr 10, 2013
- 42
Hi all
Is there a documentation about how to configure visual studio when it tries to link with ugopen? I am currently using visual studio 2012.
when I try to build a simple program using uf functions (only had two functions been called from uf.h, i.e., UF_initialize and UF_terminate), it gives me such errors:
1>------ Build started: Project: NXTest1, Configuration: Debug Win32 ------
1>NXTest1.obj : error LNK2019: unresolved external symbol __imp__UF_initialize referenced in function _main
1>NXTest1.obj : error LNK2019: unresolved external symbol __imp__UF_terminate referenced in function _main
1>D:\Gan_Software\VisualStudio\projects\NXTest1\Debug\NXTest1.exe : fatal error LNK1120: 2 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
If I use the variables defined by nx, such as, "uf_list_p_t", it works ok. The compiler only gives error msg when it calls the functions from ugopen. I guess the solution could be very simple, maybe it because that it cannot find the source code for the functions and just need to include some library paths. But I tried to include all lib directories in the visual studio, and still doesn't work.
Someone please help!
Many thanks!
Is there a documentation about how to configure visual studio when it tries to link with ugopen? I am currently using visual studio 2012.
when I try to build a simple program using uf functions (only had two functions been called from uf.h, i.e., UF_initialize and UF_terminate), it gives me such errors:
1>------ Build started: Project: NXTest1, Configuration: Debug Win32 ------
1>NXTest1.obj : error LNK2019: unresolved external symbol __imp__UF_initialize referenced in function _main
1>NXTest1.obj : error LNK2019: unresolved external symbol __imp__UF_terminate referenced in function _main
1>D:\Gan_Software\VisualStudio\projects\NXTest1\Debug\NXTest1.exe : fatal error LNK1120: 2 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
If I use the variables defined by nx, such as, "uf_list_p_t", it works ok. The compiler only gives error msg when it calls the functions from ugopen. I guess the solution could be very simple, maybe it because that it cannot find the source code for the functions and just need to include some library paths. But I tried to include all lib directories in the visual studio, and still doesn't work.
Someone please help!
Many thanks!