cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

what this error in creation of dll file

kguru
1-Visitor

what this error in creation of dll file

x64\Debug\pt_utils.obj x64\Debug\main.obj D:/protoolkit/x86e_win64/obj/protk_dll.lib libcmt.lib kernel32.lib user32.lib wsock32.lib advapi32.lib mpr.lib winspool.lib netapi32.lib psapi.lib gdi32.lib shell32.lib comdlg32.lib ole32.lib ws2_32.lib

1>     Creating library x64\Debug\main.lib and object x64\Debug\main.exp

1>protk_dll.lib(pdp_pdevtk.obj) : error LNK2019: unresolved external symbol user_initialize referenced in function user_initialize_plus

1>protk_dll.lib(pdp_pdevtk.obj) : error LNK2019: unresolved external symbol user_terminate referenced in function user_terminate_plus

1>x64\Debug\main.dll : fatal error LNK1120: 2 unresolved externals

1>NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\x86_amd64\link.EXE"' : return code '0x460'

1>  Stop.

1>NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\nmake.EXE"' : return code '0x2'

1>  Stop.

1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets(43,5): error MSB3073: The command "nmake /f MAKEFILE rebuild_dll" exited with code 2.

========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

6 REPLIES 6

unresolved external symbol

→ There is some reference missing with your code.

→ Check your have properly mentioned Include directories and the Library directories  in configuration properties of VC++ Directories

→ Check your Additional Include Directories in the C/C++ General properties

→ Also Check the project configuration is x64  for x64 version of Creo

Parthiban Kannan

href="https://www.linkedin.com/in/parthiban-kannan/" target="_blank"
wtuttle
2-Explorer
(To:kguru)

Have you been able to resolve the error? I'm receiving the same error trying to create a DLL (using a makefile). I do not receive an error when creating an EXE.

Hello WILLIAM TUTTLE‌ If your application works fine with  .exe and not working in dll means you may missed some additional dependencies in you Linker configuration

Check the following static library added with your Additional dependencies

kernel32.lib

user32.lib

gdi32.lib

winspool.lib

comdlg32.lib

advapi32.lib

shell32.lib

ole32.lib

oleaut32.lib

uuid.lib

odbc32.lib

odbccp32.lib

These libraries are windows library file which defaults come with win32 application and we have to add in Make File or Dynamic Library Project

Parthiban Kannan

href="https://www.linkedin.com/in/parthiban-kannan/" target="_blank"

WILLIAM TUTTLE‌, keerthana guru‌ can you post your Makefile here

Parthiban Kannan

href="https://www.linkedin.com/in/parthiban-kannan/" target="_blank"

Parthiban ,

These library files (winspool.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib)  were not in the original make file. I have added them and re-ran the make file – I still receive the error.

Regards,

Bill

# Libraries

PTCLIBS = $(PROTOOL_SYS)/obj/protoolkit_NU.lib    \

$(ICU_PATH)/ucore.lib                   \

$(ICU_PATH)/udata.lib

PTCLIBS_DLL = $(PROTOOL_SYS)/obj/protk_dll_NU.lib \

  $(ICU_PATH)/ucore.lib \

$(ICU_PATH)/udata.lib

LIBS = libcmt.lib kernel32.lib user32.lib wsock32.lib advapi32.lib mpr.lib winspool.lib netapi32.lib psapi.lib gdi32.lib shell32.lib comdlg32.lib ole32.lib ws2_32.lib winspool.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib

Error

   Creating library checks.lib and object checks.exp

protk_dll_NU.lib(pdp_pdevtk.obj) : error LNK2019: unresolved external symbol user_initialize referenced in function user_initialize_plus

protk_dll_NU.lib(pdp_pdevtk.obj) : error LNK2019: unresolved external symbol user_terminate referenced in function user_terminate_plus

  1. checks.dll : fatal error LNK1120: 2 unresolved externals

NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.EXE"' : return code '0x460'

  1. Stop.

Press any key to continue . . .

Hi WILLIAM TUTTLE‌,

make sure your project configuration is Makefile and Platform(x64).

Parthiban Kannan

href="https://www.linkedin.com/in/parthiban-kannan/" target="_blank"
Announcements


Top Tags