Click here to Skip to main content
15,905,867 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dynamic arrays Pin
Nemanja Trifunovic17-Apr-06 9:02
Nemanja Trifunovic17-Apr-06 9:02 
GeneralRe: Dynamic arrays Pin
Waldermort17-Apr-06 9:14
Waldermort17-Apr-06 9:14 
GeneralRe: Dynamic arrays Pin
Nemanja Trifunovic17-Apr-06 10:41
Nemanja Trifunovic17-Apr-06 10:41 
AnswerRe: Dynamic arrays Pin
Joe Woodbury17-Apr-06 10:29
professionalJoe Woodbury17-Apr-06 10:29 
GeneralRe: Dynamic arrays Pin
Nemanja Trifunovic17-Apr-06 10:46
Nemanja Trifunovic17-Apr-06 10:46 
GeneralRe: Dynamic arrays Pin
Joe Woodbury17-Apr-06 21:21
professionalJoe Woodbury17-Apr-06 21:21 
QuestionImpersonation and Access Rights Pin
Putta_V17-Apr-06 5:28
Putta_V17-Apr-06 5:28 
QuestionLinker Error ?? Pin
jinbabaj17-Apr-06 5:03
jinbabaj17-Apr-06 5:03 
Hi Folks,
I am facing a little problem executing my program..

I am using an MFC APP Wizard Application, which was running fine untill I added a function[ Find() ] in my View class which uses a global function [ int getAngle() ].

I defined my global Function and Variable in a seprate header and use #include "Global.h" on top of my View Class (.h).

If i dont define this global function [ int getAngle() ] in "Global.h" and build my program the compiler complains about [ int getAngle() ] not declared and used in function [ Find() ].
But as soon i define the function [ int getAngle() ] in "Global.h" and build my program i get linker errors saying


"SimulationView.obj : error LNK2005: "int __cdecl GetMap(int,int)" (?GetMap@@YAHHH@Z) already defined in Simulation.obj
...
SimulationView.obj : error LNK2001: unresolved external symbol "int __cdecl getAngle(class MapNode,class MapNode)" (?getAngle@@YAHVMapNode@@0@Z)
Debug/Simulation.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe. "


Can anyone of u guys figure out whts the problem ???

Regards,
JinBaba
AnswerRe: Linker Error ?? Pin
David Crow17-Apr-06 5:11
David Crow17-Apr-06 5:11 
GeneralRe: Linker Error ?? Pin
jinbabaj17-Apr-06 16:08
jinbabaj17-Apr-06 16:08 
GeneralRe: Linker Error ?? Pin
David Crow18-Apr-06 3:11
David Crow18-Apr-06 3:11 
GeneralRe: Linker Error ?? Pin
jinbabaj17-Apr-06 16:15
jinbabaj17-Apr-06 16:15 
QuestionD3D 2D Texture(PNG File) How to set ColorKey Pin
akira3217-Apr-06 4:24
akira3217-Apr-06 4:24 
QuestionDirect Show webcam Pin
YaronNir17-Apr-06 4:14
YaronNir17-Apr-06 4:14 
Questionproblem with BroadcastSystemMessage() Pin
ashtwin17-Apr-06 4:01
ashtwin17-Apr-06 4:01 
QuestionRe: problem with BroadcastSystemMessage() Pin
David Crow17-Apr-06 4:18
David Crow17-Apr-06 4:18 
AnswerRe: problem with BroadcastSystemMessage() Pin
ashtwin18-Apr-06 20:58
ashtwin18-Apr-06 20:58 
QuestionDebug Assertion Failed Pin
keerthikaaa17-Apr-06 3:09
keerthikaaa17-Apr-06 3:09 
AnswerRe: Debug Assertion Failed Pin
David Crow17-Apr-06 3:29
David Crow17-Apr-06 3:29 
AnswerRe: Debug Assertion Failed Pin
Stephen Hewitt17-Apr-06 4:24
Stephen Hewitt17-Apr-06 4:24 
Question[Message Deleted] Pin
ddmcr17-Apr-06 2:47
ddmcr17-Apr-06 2:47 
AnswerRe: Display Tooltips for each item in ListCtrl Pin
YaronNir17-Apr-06 4:16
YaronNir17-Apr-06 4:16 
AnswerRe: Display Tooltips for each item in ListCtrl Pin
Michael Dunn17-Apr-06 8:02
sitebuilderMichael Dunn17-Apr-06 8:02 
QuestionSlicing in C++ Pin
Krishnatv17-Apr-06 2:44
Krishnatv17-Apr-06 2:44 
AnswerRe: Slicing in C++ Pin
David Crow17-Apr-06 3:30
David Crow17-Apr-06 3:30 

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.