linking problem in driver

Posted: 10-26-2004, 05:32 AM
Hi ,

I am trying to build a FS filter driver wherein i have a .cpp file and some
..c files. I want to use a function from .cpp file in a .c file.

The .cpp file has the desired function declaration in extern "C" { ...}
: extern "C" int abc();
: int abc(){ ... }
and the .c file has the plain function declaration and uses the function
: int abc();
: void xyz(){ abc(); }

while linking these files together i get "LNK2019 :unresolved external
symbol _abc@0 referenced in function _xyz@0 "
When i looked into .obj files for these .cpp and .c files and found "_abc@0"
in both. I think that is what it should be and still i cannot
identify the problem.

The sources file i used looks something like(I have cut the irrelevant
matter) :
TARGETNAME=xyz
TARGETPATH=obj
TARGETTYPE=DRIVER
BASEDIR=..
DRIVERTYPE=FS
USE_MAPSYM=1
USE_NATIVE_EH=1
USER_C_FLAGS=/Tpa.cpp #a.cpp file contains the function to be used
C_DEFINES= /I$(BASEDIR)\include
SOURCES=b.c #b.c file uses the function from a.cpp

Anyone who has encountered similar problem plz help.

Thanx
Sushant



Reply With Quote

Responses to "linking problem in driver"

 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking a Collection with a Project CW Windows XP Movie Maker 1 03-03-2004 12:16 AM
linking wmv files together Roy Windows XP Video 2 11-27-2003 01:19 AM
Add in linking messenger to hotmail ME Windows XP Messenger 0 10-03-2003 05:02 AM
linking two computers Harry Ohrn Windows XP Basics 0 07-30-2003 04:14 AM
Need help linking xp to 98 Steve Winograd [MVP] Windows XP Network & Web 0 07-04-2003 12:07 AM


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90