Click here to Skip to main content
15,887,856 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Hour Glass won't go away! Pin
@largeinsd31-Jan-08 8:24
@largeinsd31-Jan-08 8:24 
GeneralRegarding integration of two different projects Pin
H4u3229-Jan-08 17:46
H4u3229-Jan-08 17:46 
GeneralRe: Regarding integration of two different projects Pin
Maxwell Chen29-Jan-08 18:05
Maxwell Chen29-Jan-08 18:05 
GeneralRe: Regarding integration of two different projects Pin
H4u3229-Jan-08 19:12
H4u3229-Jan-08 19:12 
QuestionRe: Regarding integration of two different projects Pin
Maxwell Chen29-Jan-08 19:34
Maxwell Chen29-Jan-08 19:34 
GeneralRe: Regarding integration of two different projects Pin
H4u3229-Jan-08 19:35
H4u3229-Jan-08 19:35 
GeneralRe: Regarding integration of two different projects Pin
Maxwell Chen29-Jan-08 19:43
Maxwell Chen29-Jan-08 19:43 
GeneralRe: Regarding integration of two different projects Pin
manish.patel29-Jan-08 21:27
manish.patel29-Jan-08 21:27 
Ok thats same as my problem.

Now i am posting my code

I am having two projects in one solution: one is Test1 and another one is Test2

Test1 having two files Test1.h and Test1.c

Test1.h

void testFunc();

Test1.c

<br />
#include "Test1.h"<br />
void testFunc()<br />
{<br />
printf("In Function testFunc()");<br />
}<br />



Now Test2 Having Two Files Test2.h and Test2.cpp

Test2.h

<br />
class Test2<br />
{<br />
Test2();<br />
}<br />


Test2.cpp

<br />
#include "Test2.h"<br />
#include "Test1.h"<br />
<br />
Test2::Test2()<br />
{<br />
testFunc();<br />
}<br />


Now i am compiling Test1 by c Compiler and Test2 by c++ compiler in "VS2005"

so it is giving me linking error as below:

error LNK2019: unresolved external symbol _testFunc referenced in function "public: __thiscall Test2::Test2(void)" (??0Test2@@QAE@XZ)

So do you have any idea regarding this??


Please Give me any idea, i am stuck on it.

Manish Patel.
B.E. - Information Technology.


GeneralRe: Regarding integration of two different projects Pin
Maxwell Chen29-Jan-08 21:52
Maxwell Chen29-Jan-08 21:52 
GeneralRe: Regarding integration of two different projects Pin
manish.patel30-Jan-08 0:15
manish.patel30-Jan-08 0:15 
GeneralRe: Regarding integration of two different projects Pin
Maxwell Chen30-Jan-08 1:09
Maxwell Chen30-Jan-08 1:09 
Generalthe confusing term page file Pin
George_George29-Jan-08 17:04
George_George29-Jan-08 17:04 
Generalstd::exception and STL Pin
George_George29-Jan-08 16:42
George_George29-Jan-08 16:42 
GeneralRe: std::exception and STL Pin
Stephen Hewitt29-Jan-08 18:30
Stephen Hewitt29-Jan-08 18:30 
GeneralRe: std::exception and STL Pin
George_George29-Jan-08 18:42
George_George29-Jan-08 18:42 
Generalhelp Pin
gentleguy29-Jan-08 14:20
gentleguy29-Jan-08 14:20 
AnswerRe: help Pin
Maxwell Chen29-Jan-08 16:22
Maxwell Chen29-Jan-08 16:22 
GeneralMultiple Application Serialization Pin
perrin486929-Jan-08 13:42
perrin486929-Jan-08 13:42 
GeneralRe: Multiple Application Serialization [modified] Pin
CPallini29-Jan-08 21:44
mveCPallini29-Jan-08 21:44 
QuestionRe: Multiple Application Serialization Pin
Mark Salsbery30-Jan-08 7:06
Mark Salsbery30-Jan-08 7:06 
JokeRe: Multiple Application Serialization Pin
James R. Twine30-Jan-08 7:19
James R. Twine30-Jan-08 7:19 
GeneralRe: Multiple Application Serialization Pin
Mark Salsbery30-Jan-08 7:32
Mark Salsbery30-Jan-08 7:32 
GeneralRe: Multiple Application Serialization Pin
CPallini30-Jan-08 21:14
mveCPallini30-Jan-08 21:14 
GeneralReadDirectoryChangesW vs FindFirstFile (on file server hosting mac file system) Pin
Peter Weyzen29-Jan-08 12:58
Peter Weyzen29-Jan-08 12:58 
GeneralRe: ReadDirectoryChangesW vs FindFirstFile (on file server hosting mac file system) Pin
James R. Twine30-Jan-08 7:08
James R. Twine30-Jan-08 7:08 

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.