Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error LNK1120, while compiling with Release/Debug - [x64] #2

Open
Yuvraj-Takey opened this issue Jun 19, 2020 · 1 comment
Open

Comments

@Yuvraj-Takey
Copy link

I am using windows 10(x64), visual studio 2019(x64).
I have installed libxml2 package (from the visual studio -> References -> Manage NuGet Packages... -> Browse -> libxml2). I am successfully able to compile and run the code with this libxml2 package, but while converting the solution platform from x86 to x64, I am facing the below issues. Can anybody please help me out form this?

`
1>WinEventParse.obj : error LNK2001: unresolved external symbol xmlStrlen
1>WinEventParse.obj : error LNK2001: unresolved external symbol xmlDocGetRootElement
1>WinEventParse.obj : error LNK2001: unresolved external symbol xmlFreeDoc
1>WinEventParse.obj : error LNK2001: unresolved external symbol xmlNodeGetContent
1>WinEventParse.obj : error LNK2001: unresolved external symbol xmlStrcmp
1>WinEventParse.obj : error LNK2001: unresolved external symbol xmlParseMemory
1>WinEventParse.obj : error LNK2001: unresolved external symbol xmlIsBlankNode
1>C:\Users\CD\Desktop\VS_Projects\0_D\Initiator_v2\x64\Release\Initiator_v2.exe : fatal error LNK1120: 7 unresolved externals

1>Done building project "Initiator_v2.vcxproj" -- FAILED.
`

@Yuvraj-Takey
Copy link
Author

I am using windows 10(x64), visual studio 2019(x64).
I have installed libxml2 package (from the visual studio -> References -> Manage NuGet Packages... -> Browse -> libxml2). I am successfully able to compile and run the code with this libxml2 package, but while converting the solution platform from x86 to x64, I am facing the below issues. Can anybody please help me out form this?

`
1>WinEventParse.obj : error LNK2001: unresolved external symbol xmlStrlen
1>WinEventParse.obj : error LNK2001: unresolved external symbol xmlDocGetRootElement
1>WinEventParse.obj : error LNK2001: unresolved external symbol xmlFreeDoc
1>WinEventParse.obj : error LNK2001: unresolved external symbol xmlNodeGetContent
1>WinEventParse.obj : error LNK2001: unresolved external symbol xmlStrcmp
1>WinEventParse.obj : error LNK2001: unresolved external symbol xmlParseMemory
1>WinEventParse.obj : error LNK2001: unresolved external symbol xmlIsBlankNode
1>C:\Users\CD\Desktop\VS_Projects\0_D\Initiator_v2\x64\Release\Initiator_v2.exe : fatal error LNK1120: 7 unresolved externals

1>Done building project "Initiator_v2.vcxproj" -- FAILED.
`

After changing the package from NuGet for x64, I got another type of error.

`
1>LINK : fatal error C1047: The object or library file 'C:\Users\CD\Desktop\VS_Projects\0_D\Initiator_v2\packages\libxml2-vc140-static-32_64.2.9.4.1\build\native....\lib\native\libs\x64\static\Release\libxml2.lib' was created with an older compiler than other objects; rebuild old objects and libraries
1>LINK : fatal error LNK1257: code generation failed

1>Done building project "Initiator_v2.vcxproj" -- FAILED.
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant