I don't know why I keep getting unresolved external symbols when I compile
this code
// File - prochead.cpp
#include <stdio.h>
#include <malloc.h>
#include <process.h>
#include <stdlib.h>
//#include "resource.h"
#include "newexe.h"
//extern FILE *in, *rc;
//extern BOOL bWindows3;
//extern BOOL bDumpHeader;
//extern struct ResourceTable *pResourceEntry;
extern FILE *inFile, *rcFile;
extern struct ResourceTable *pResourceEntry;
void process_header(void);
// file - ne.cpp
#include <windows.h>
#include <string>
#include <ida.hpp>
#include <idp.hpp>
#include <loader.hpp>
#include "newexe.h"
extern FILE *inFile = NULL;
extern FILE *rcFile = NULL;
extern struct ResourceTable *pResourceEntry = NULL;
//////////////////////////////////////////////////////
Error 1 error LNK2019: unresolved external symbol "struct ResourceTable *
pResourceEntry" (?pResourceEntry@@3PAUResourceTable@@A) referenced in
function "void __cdecl process_header(void)" (?process_header@@YAXXZ)
prochead.obj
Error 2 error LNK2019: unresolved external symbol "struct _iobuf * rcFile"
(?rcFile@@3PAU_iobuf@@A) referenced in function "void __cdecl
process_header(void)" (?process_header@@YAXXZ) prochead.obj
Error 3 error LNK2019: unresolved external symbol "struct _iobuf * inFile"
(?inFile@@3PAU_iobuf@@A) referenced in function "void __cdecl
process_header(void)" (?process_header@@YAXXZ) prochead.obj
The question is why.... can you show me how?
Thanks
Jack