hpv75
asked on
Porting MS C to MS Visual C
Hi!!!
I have my source code in MS C. Now I need use VC
My Source code compile OK (only 1 warning), but Link and received the following:
Timer.obj : error LNK2001: unresolved external symbol _IntSvcRtn
Timer.obj : error LNK2001: unresolved external symbol _wCount
.........
.... another
IntSvcRtn function is under a .asm source code file, I use
#pragma alloc_text(FIXED_TEXT,IntS vcRtn) function C
Source code .asm file is:
....
FIXED_DATA SEGMENT DWORD PUBLIC 'DATA'
....
....
FIXED_TEXT SEGMENT PARA PUBLIC 'CODE'
selData1 dw FIXED_DATA
assume CS:FIXED_TEXT,DS:NOTHING
PUBLIC _IntSvcRtn
_IntSvcRtn label far
IntSvcRtn proc far
sub sp,4
....
....
What's Up??
I need Porting my MS C code (32bits) to MS Visual C 5.0 (32bits).
What I can do?? any Idea??
Thanks Again!!
Sincerely.
I have my source code in MS C. Now I need use VC
My Source code compile OK (only 1 warning), but Link and received the following:
Timer.obj : error LNK2001: unresolved external symbol _IntSvcRtn
Timer.obj : error LNK2001: unresolved external symbol _wCount
.........
.... another
IntSvcRtn function is under a .asm source code file, I use
#pragma alloc_text(FIXED_TEXT,IntS
Source code .asm file is:
....
FIXED_DATA SEGMENT DWORD PUBLIC 'DATA'
....
....
FIXED_TEXT SEGMENT PARA PUBLIC 'CODE'
selData1 dw FIXED_DATA
assume CS:FIXED_TEXT,DS:NOTHING
PUBLIC _IntSvcRtn
_IntSvcRtn label far
IntSvcRtn proc far
sub sp,4
....
....
What's Up??
I need Porting my MS C code (32bits) to MS Visual C 5.0 (32bits).
What I can do?? any Idea??
Thanks Again!!
Sincerely.
DEpending on some settings in your environment, the compiler will add leading '_' to the functions. Try changing this option.
ASKER
Becouse! the settings in my environment are O.k!!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.