Click here to Skip to main content
15,886,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Design Question: Only Bitmap or JPEG ? Pin
Mark Salsbery14-Jul-08 13:40
Mark Salsbery14-Jul-08 13:40 
AnswerRe: Design Question: Only Bitmap or JPEG ? Pin
Nelek14-Jul-08 21:16
protectorNelek14-Jul-08 21:16 
GeneralRe: Design Question: Only Bitmap or JPEG ? Pin
gabbana16-Jul-08 4:37
gabbana16-Jul-08 4:37 
GeneralRe: Design Question: Only Bitmap or JPEG ? Pin
Nelek20-Jul-08 23:36
protectorNelek20-Jul-08 23:36 
QuestionCFrameWnd *without* a view [modified] Pin
[d3m0n]14-Jul-08 10:24
[d3m0n]14-Jul-08 10:24 
Questionunresolved external symbol Pin
AndreFratelli14-Jul-08 10:03
AndreFratelli14-Jul-08 10:03 
AnswerRe: unresolved external symbol Pin
led mike14-Jul-08 12:15
led mike14-Jul-08 12:15 
GeneralRe: unresolved external symbol Pin
AndreFratelli14-Jul-08 20:02
AndreFratelli14-Jul-08 20:02 
led mike wrote:
I don't know what you think we can do it about it short of re-writing all the C++ documentation that already exists which wouldn't make any sense since you have already proven you don't read it.


You don't even have a reason to think that. I get unresolved external symbols only after separating the code into files... Wouldn't it be reasonable it would work just as well? Before, I had this:

// file whatever.h
#ifndef __WHATEVER_H
#define __WHATEVER_H
class Whatever
{
 void method();
};

void Whatever::method()
{
}
#endif


Now I have this:

// file whatever.h
#ifndef __WHATEVER_H
#define __WHATEVER_H
class Whatever
{
 void method();
};
#endif


// file whatever.cpp
#include "whatever.h"

void Whatever::method()
{
}


And I get these:

caminho.obj : error LNK2019: unresolved external symbol "public: bool __thiscall Capacidade::reserva(class Fluxo)" (?reserva@Capacidade@@QAE_NVFluxo@@@Z) referenced in function "public: bool __thiscall Caminho::ligar(void)" (?ligar@Caminho@@QAE_NXZ)
caminho.obj : error LNK2019: unresolved external symbol "public: bool __thiscall Capacidade::liberta(class Fluxo)" (?liberta@Capacidade@@QAE_NVFluxo@@@Z) referenced in function "public: void __thiscall Caminho::desligar(void)" (?desligar@Caminho@@QAEXXZ)
caminho.obj : error LNK2019: unresolved external symbol "public: unsigned int __thiscall Capacidade::suporta(class Fluxo)const " (?suporta@Capacidade@@QBEIVFluxo@@@Z) referenced in function "public: bool __thiscall Caminho::ping(void)const " (?ping@Caminho@@QBE_NXZ)
grafo.obj : error LNK2019: unresolved external symbol "public: unsigned int const __thiscall No::id(void)const " (?id@No@@QBE?BIXZ) referenced in function "public: bool __thiscall Grafo::ligados(unsigned int,unsigned int)const " (?ligados@Grafo@@QBE_NII@Z)
grafo.obj : error LNK2019: unresolved external symbol "public: class No * __thiscall Ligacao::destino(void)const " (?destino@Ligacao@@QBEPAVNo@@XZ) referenced in function "public: bool __thiscall Grafo::ligados(unsigned int,unsigned int)const " (?ligados@Grafo@@QBE_NII@Z)
grafo.obj : error LNK2019: unresolved external symbol "public: unsigned int __thiscall Capacidade::custo(class Fluxo)const " (?custo@Capacidade@@QBEIVFluxo@@@Z) referenced in function "public: class Caminho __thiscall Grafo::dijkstra(unsigned int,unsigned int,class Fluxo)const " (?dijkstra@Grafo@@QBE?AVCaminho@@IIVFluxo@@@Z)
grafo.obj : error LNK2019: unresolved external symbol "public: class Capacidade * __thiscall Ligacao::capacidade(void)const " (?capacidade@Ligacao@@QBEPAVCapacidade@@XZ) referenced in function "public: class Caminho __thiscall Grafo::dijkstra(unsigned int,unsigned int,class Fluxo)const " (?dijkstra@Grafo@@QBE?AVCaminho@@IIVFluxo@@@Z)
E:\Projects\netsim\Debug\netsim.exe : fatal error LNK1120: 7 unresolved externals

I didn't include the error messages because I didn't think they would help. What I was looking for (and still am) were the kind of coding errors that would cause this, cause I really can't find what's wrong here.

I bet it will be one of those things that, when you find out what it is, you just fill like smashing the computer Laugh | :laugh:

regards

Fratelli

AnswerRe: unresolved external symbol Pin
Stephen Hewitt14-Jul-08 14:43
Stephen Hewitt14-Jul-08 14:43 
GeneralRe: unresolved external symbol Pin
AndreFratelli14-Jul-08 20:25
AndreFratelli14-Jul-08 20:25 
GeneralRe: unresolved external symbol Pin
Stephen Hewitt14-Jul-08 20:30
Stephen Hewitt14-Jul-08 20:30 
GeneralRe: unresolved external symbol Pin
AndreFratelli15-Jul-08 4:26
AndreFratelli15-Jul-08 4:26 
GeneralRe: unresolved external symbol Pin
Alan Balkany15-Jul-08 4:21
Alan Balkany15-Jul-08 4:21 
GeneralRe: unresolved external symbol Pin
AndreFratelli15-Jul-08 4:29
AndreFratelli15-Jul-08 4:29 
QuestionCfile write problem [modified] Pin
aei_totten14-Jul-08 8:24
aei_totten14-Jul-08 8:24 
QuestionRe: Cfile write problem Pin
David Crow14-Jul-08 8:30
David Crow14-Jul-08 8:30 
AnswerRe: Cfile write problem Pin
aei_totten14-Jul-08 8:34
aei_totten14-Jul-08 8:34 
GeneralRe: Cfile write problem Pin
Cedric Moonen14-Jul-08 8:36
Cedric Moonen14-Jul-08 8:36 
GeneralRe: Cfile write problem Pin
aei_totten14-Jul-08 8:45
aei_totten14-Jul-08 8:45 
GeneralRe: Cfile write problem Pin
led mike14-Jul-08 8:57
led mike14-Jul-08 8:57 
GeneralRe: Cfile write problem Pin
Mark Salsbery14-Jul-08 9:29
Mark Salsbery14-Jul-08 9:29 
GeneralRe: Cfile write problem Pin
led mike14-Jul-08 9:54
led mike14-Jul-08 9:54 
GeneralRe: Cfile write problem Pin
Mark Salsbery14-Jul-08 9:57
Mark Salsbery14-Jul-08 9:57 
GeneralRe: Cfile write problem Pin
led mike14-Jul-08 11:16
led mike14-Jul-08 11:16 
GeneralRe: Cfile write problem Pin
aei_totten14-Jul-08 8:37
aei_totten14-Jul-08 8:37 

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.