Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Leda > Problem in link...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 155 of 212
Post > Topic >>

Problem in linking

by formula1_pk@[EMAIL PROTECTED] (prash) Aug 31, 2004 at 03:26 PM

Hi all,

I am working on embedded C++, and working on previously coded project
and modifying as per new requirements.

Right now I am getting two types of erros.

1. In running the present code
2. While building the modified code.

In the project i am handling, I am getting errors with respect to 4
files.
card.h, card.cpp, ioproc.h, ioproc.cpp.

card.h has class IOhandler which has different public member functions
to operate on I/O cards. like
InitilizeAllDacCards()
openAllAdcCards()

In, card.cpp; card.h is included and it has the definitions for these
member functions and are being defined with :: operator and class
name.

In Ioproc.h, card.h is included and an object for IOhandler
m_IOhandler is created.

In Ioproc.cpp, Ioproc.h is included and in initialise function these
InitializeAllDacCards() and openAllAdcCards() are called with object
m_IOhandler.

So after making a module of the project and when running this module
on the target the process in going into blocked state, from where
these functions are being called. WHY IS THAT???

2: To test this , I added one more member function in IOhandler class
and defined it in card.cpp and called it in the Ioproc.cpp.
Then while building the project, its giving error saying......

168.exe: error - symbol 'IOhandler::myfun()'
unresolved, referenced by 'Ioproc.cpp'.
168.exe: **** fatal - errors encountered
os9make: aborted due to errors.

Then I declared my own class in card.h , then used a member function
and defined it there itself. Then when I call that function it build
properly and the function calling also takes place. But the same
member function when i define in card.cpp I am getting the same error
message while building the project.

Can anyone please help me regarding this. And also note that this
problem is regardless the function has content or not also i.e, for
dummy function also I am getting this problem.

Thanx in advance.

regards,
prash.

      [ See http://www.gotw.ca/resources/clcm.htm
for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]




 1 Posts in Topic:
Problem in linking
formula1_pk@[EMAIL PROTEC  2004-08-31 15:26:50 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed May 14 3:27:40 CDT 2008.