Click here to Skip to main content
15,902,276 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Adding a SDI into a dialog based application Pin
FarPointer27-Jun-06 1:54
FarPointer27-Jun-06 1:54 
AnswerRe: Adding a SDI into a dialog based application Pin
zouchao111227-Jun-06 2:46
zouchao111227-Jun-06 2:46 
GeneralRe: Adding a SDI into a dialog based application Pin
cv_k3n27-Jun-06 6:43
cv_k3n27-Jun-06 6:43 
GeneralRe: Adding a SDI into a dialog based application Pin
zouchao111228-Jun-06 17:50
zouchao111228-Jun-06 17:50 
Questionis quastion3D model Pin
obituary2u27-Jun-06 1:40
obituary2u27-Jun-06 1:40 
AnswerRe: is quastion3D model [modified] Pin
FarPointer27-Jun-06 1:44
FarPointer27-Jun-06 1:44 
GeneralRe: is quastion3D model Pin
obituary2u27-Jun-06 13:07
obituary2u27-Jun-06 13:07 
Questionusing VC6 link VC7 static lib error [modified] Pin
George_George27-Jun-06 1:32
George_George27-Jun-06 1:32 
Hello everyone,


I use VC 7 (Visual Studio.Net 2003) created a static lib, then I use VC6 to link with it in an application, there are some errors during link. Here is the source file of the lib,

<br />
int foo()<br />
{<br />
	return 2008;<br />
}<br />


Here is the header of the lib file,

<br />
int foo();<br />


Here is the application using the static lib,

<br />
#include "foo.h"<br />
<br />
int main()<br />
{<br />
	int a = foo();<br />
<br />
	return 0;<br />
}<br />


When building the lib using VC7, there are no errors and the static lib is generated. When building the application and link it with the static lib, there are errors,

<br />
--------------------Configuration: VC6VC7lib - Win32 Debug--------------------<br />
Linking...<br />
VC7_static_lib.lib(foo.obj) : fatal error LNK1190: invalid fixup found, type 0x000C<br />
Error executing link.exe.<br />
<br />
VC6VC7lib.exe - 1 error(s), 0 warning(s)<br />


I can not find any useful information from MSDN. Could anyone help please -- how to use VC6 link a static library generated by VC7?


thanks in advance,
George

-- modified at 7:33 Tuesday 27th June, 2006
QuestionRe: using VC6 link VC7 static lib error Pin
Viorel.27-Jun-06 1:36
Viorel.27-Jun-06 1:36 
AnswerRe: using VC6 link VC7 static lib error Pin
George_George27-Jun-06 1:57
George_George27-Jun-06 1:57 
GeneralRe: using VC6 link VC7 static lib error Pin
Viorel.27-Jun-06 2:09
Viorel.27-Jun-06 2:09 
GeneralRe: using VC6 link VC7 static lib error Pin
George_George27-Jun-06 2:29
George_George27-Jun-06 2:29 
GeneralRe: using VC6 link VC7 static lib error Pin
Viorel.27-Jun-06 2:41
Viorel.27-Jun-06 2:41 
GeneralRe: using VC6 link VC7 static lib error Pin
George_George27-Jun-06 2:50
George_George27-Jun-06 2:50 
GeneralRe: using VC6 link VC7 static lib error Pin
Viorel.27-Jun-06 2:56
Viorel.27-Jun-06 2:56 
GeneralRe: using VC6 link VC7 static lib error Pin
George_George27-Jun-06 3:01
George_George27-Jun-06 3:01 
GeneralRe: using VC6 link VC7 static lib error Pin
Viorel.27-Jun-06 3:14
Viorel.27-Jun-06 3:14 
GeneralRe: using VC6 link VC7 static lib error Pin
George_George27-Jun-06 3:33
George_George27-Jun-06 3:33 
AnswerRe: using VC6 link VC7 static lib error Pin
Michael Dunn27-Jun-06 6:48
sitebuilderMichael Dunn27-Jun-06 6:48 
GeneralRe: using VC6 link VC7 static lib error Pin
George_George27-Jun-06 21:16
George_George27-Jun-06 21:16 
GeneralRe: using VC6 link VC7 static lib error Pin
Michael Dunn28-Jun-06 5:36
sitebuilderMichael Dunn28-Jun-06 5:36 
GeneralRe: using VC6 link VC7 static lib error Pin
George_George29-Jun-06 21:31
George_George29-Jun-06 21:31 
GeneralRe: using VC6 link VC7 static lib error Pin
Michael Dunn1-Jul-06 2:04
sitebuilderMichael Dunn1-Jul-06 2:04 
GeneralRe: using VC6 link VC7 static lib error Pin
George_George2-Jul-06 18:57
George_George2-Jul-06 18:57 
Questionsetdlgitem text is not showing the message. Pin
Amit Agarrwal27-Jun-06 1:05
Amit Agarrwal27-Jun-06 1:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.