Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
I have a project in vc++ which using standerd windows library and source file include file1.h.A method in header file defind as

void _stdcall fun(char * text);

but the plateform was the x86 and vc6.Now I converted the project in vs8.and plateform x64.I also add the file1.lib file in x64 plateform.But when I execute the project the error occure that

error LNK2019: unresolved external symbol fun referenced in function main
Posted 4-Nov-11 0:24am
Richard MacCutchan at 4-Nov-11 6:28am
Did you rebuild the file1.lib library on the x64 project?
vikky08 at 4-Nov-11 6:31am
No,I don't have the code of file1.lib.have only file1.lib.
Richard MacCutchan at 4-Nov-11 7:30am
In that case you cannot do what you want. You cannot mix 64-bit with 32-bit code.
vikky08 at 4-Nov-11 8:57am
Thanks Richard for the reply.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 392
1 Nirav Prabtani 278
2 Richard Deeming 250
3 _Amy 170
4 Peter Leow 140
0 Nirav Prabtani 265
1 OriginalGriff 177
2 _Amy 170
3 Mehdi Gholam 105
4 Maciej Los 90

Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 4 Nov 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100