Click here to Skip to main content
16,005,697 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Efficiency issues from VC++6.0 to VC++.NET Pin
myenigmaself4-Mar-02 10:39
myenigmaself4-Mar-02 10:39 
Questionhow to retrieve member data using HWND? Pin
lucy4-Mar-02 8:07
lucy4-Mar-02 8:07 
AnswerRe: how to retrieve member data using HWND? Pin
Joaquín M López Muñoz4-Mar-02 8:18
Joaquín M López Muñoz4-Mar-02 8:18 
GeneralRe: how to retrieve member data using HWND? Pin
lucy4-Mar-02 8:24
lucy4-Mar-02 8:24 
GeneralSelecting an area with the mouse Pin
Rage4-Mar-02 6:17
professionalRage4-Mar-02 6:17 
GeneralRe: Selecting an area with the mouse Pin
Tomasz Sowinski4-Mar-02 6:15
Tomasz Sowinski4-Mar-02 6:15 
GeneralRe: Selecting an area with the mouse Pin
Joaquín M López Muñoz4-Mar-02 7:04
Joaquín M López Muñoz4-Mar-02 7:04 
GeneralSimple but Painfully Annoying Pin
ScottS4-Mar-02 5:34
ScottS4-Mar-02 5:34 
I am very close to losing my sanity trying to build some code with visual c++. I am sure the problem will have a very simple solution but i could do with some help none the less.

I have a program with six source code files and six associated header files, they all compile fine but when trying to link i get the following error.

test.obj : error LNK2001: unresolved external symbol "void __cdecl mht_associate(struct tracker_struct * *,struct measurements_struct * *,struct parameter_struct *,int,double * * *,int,int,int,int)" (?mht_associate@@YAXPAPAUtracker_struct@@PAPAUmeas
urements_struct@@PAUparameter_struct@@HPAPAPANHHHH@Z)
Debug/mht.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

The funcion being called in a file test.c and is defined in a file mhtwrapper.h, the code is contained in mhtwrapper.c.I have checked for all the simple mistakes that i can think of, such a spelling errors and i have tried declaring the function as external with no joy. When i run dumpbin on the mhtwrapper.obj file the function symbol does seem to be defined.

Symbol index: 10 Base line number: 14
Symbol name = _mht_associate
0000001B( 15) 00000022( 16) 00000029( 17) 00000030( 20)
00000037( 22) 0000003E( 23) 00000058( 25) 00000072( 27)
00000091( 28) 00000093( 29) 00000095( 30) 000000A6( 32)
000000B5( 34) 000000C4( 35) 000000D5( 37) 000000E8( 38)
000000FB( 39) 0000010E( 41) 0000012A( 43) 00000146( 45)
00000175( 46) 000001A4( 47) 000001D3( 48) 000001D8( 49)
000001DD( 50) 000001ED( 51) 000001FF( 52) 00000211( 53)
0000021D( 54) 00000229( 55) 00000235( 58) 0000023C( 59)
0000025A( 61) 00000278( 63) 00000297( 64) 000002CB( 67)
000002DB( 69) 000002F3( 70) 0000030D( 73) 00000316( 74)
00000326( 76) 00000342( 78) 00000387( 79) 0000039F( 81)
000003EE( 82) 000003F0( 83) 000003F5( 84) 000003FA( 85)
000003FF( 86) 00000404( 87) 0000041B( 89) 00000445( 91)
0000044E( 92) 0000046C( 94) 0000047C( 95) 00000498( 98)
000004D8( 101) 00000518( 103) 00000534( 106) 0000057F( 109)
000005CA( 110) 000005CF( 111) 000005D4( 113) 000005FB( 114)
00000624( 115) 00000639( 118) 0000063E( 120) 0000064A( 123)

and

010 00000000 SECT3 notype () External | _mht_associate
tag index 0000001A size 0000066E lines 00000DA8 next function 00000000

Any advice would be gratly appriciated.

Thanks
Scott Sims


GeneralRe: Simple but Painfully Annoying Pin
Tim Deveaux4-Mar-02 5:49
Tim Deveaux4-Mar-02 5:49 
GeneralRe: Simple but Painfully Annoying Pin
ScottS4-Mar-02 5:57
ScottS4-Mar-02 5:57 
GeneralRe: Simple but Painfully Annoying Pin
Joaquín M López Muñoz4-Mar-02 7:12
Joaquín M López Muñoz4-Mar-02 7:12 
GeneralRe: Simple but Painfully Annoying Pin
ScottS4-Mar-02 7:33
ScottS4-Mar-02 7:33 
GeneralRe: Simple but Painfully Annoying Pin
Joaquín M López Muñoz4-Mar-02 7:47
Joaquín M López Muñoz4-Mar-02 7:47 
GeneralRe: Simple but Painfully Annoying Pin
ScottS4-Mar-02 8:00
ScottS4-Mar-02 8:00 
GeneralRe: Simple but Painfully Annoying Pin
Joaquín M López Muñoz4-Mar-02 8:06
Joaquín M López Muñoz4-Mar-02 8:06 
GeneralRe: Simple but Painfully Annoying Pin
ScottS4-Mar-02 9:08
ScottS4-Mar-02 9:08 
GeneralRe: Simple but Painfully Annoying Pin
Joaquín M López Muñoz4-Mar-02 9:20
Joaquín M López Muñoz4-Mar-02 9:20 
GeneralRe: Simple but Painfully Annoying Pin
Chris Maunder4-Mar-02 8:14
cofounderChris Maunder4-Mar-02 8:14 
GeneralRe: Simple but Painfully Annoying Pin
Tim Deveaux4-Mar-02 8:26
Tim Deveaux4-Mar-02 8:26 
GeneralRe: Simple but Painfully Annoying Pin
Joaquín M López Muñoz4-Mar-02 6:11
Joaquín M López Muñoz4-Mar-02 6:11 
GeneralRe: Simple but Painfully Annoying Pin
ScottS4-Mar-02 6:32
ScottS4-Mar-02 6:32 
GeneralRe: Simple but Painfully Annoying Pin
Ed Gadziemski4-Mar-02 6:25
professionalEd Gadziemski4-Mar-02 6:25 
GeneralRe: Simple but Painfully Annoying Pin
ScottS4-Mar-02 6:31
ScottS4-Mar-02 6:31 
GeneralRe: Simple but Painfully Annoying Pin
Ed Gadziemski4-Mar-02 8:14
professionalEd Gadziemski4-Mar-02 8:14 
GeneralRe: Simple but Painfully Annoying Pin
Kevin Smith4-Mar-02 8:38
Kevin Smith4-Mar-02 8:38 

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.