Click here to Skip to main content
12,697,801 members (25,761 online)
Rate this:
 
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

file1.h


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 1:24am
vikky081.1K
Comments
Richard MacCutchan 4-Nov-11 6:28am
   
Did you rebuild the file1.lib library on the x64 project?
vikky08 4-Nov-11 6:31am
   
No,I don't have the code of file1.lib.have only file1.lib.
Richard MacCutchan 4-Nov-11 7:30am
   
In that case you cannot do what you want. You cannot mix 64-bit with 32-bit code.
vikky08 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 4 Nov 2011
Copyright © CodeProject, 1999-2017
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