Click here to Skip to main content
15,889,720 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to program Excel named ranges with automation Pin
garyflet4-Mar-15 9:41
garyflet4-Mar-15 9:41 
QuestionRe: How to program Excel named ranges with automation Pin
Richard MacCutchan4-Mar-15 21:03
mveRichard MacCutchan4-Mar-15 21:03 
AnswerRe: How to program Excel named ranges with automation Pin
garyflet5-Mar-15 7:19
garyflet5-Mar-15 7:19 
GeneralRe: How to program Excel named ranges with automation Pin
Richard MacCutchan5-Mar-15 8:04
mveRichard MacCutchan5-Mar-15 8:04 
GeneralRe: How to program Excel named ranges with automation Pin
Richard MacCutchan5-Mar-15 21:06
mveRichard MacCutchan5-Mar-15 21:06 
Questiong++ Compiler not including header file Pin
PaulS_UK3-Mar-15 11:34
PaulS_UK3-Mar-15 11:34 
AnswerRe: g++ Compiler not including header file Pin
Jochen Arndt3-Mar-15 20:47
professionalJochen Arndt3-Mar-15 20:47 
GeneralRe: g++ Compiler not including header file Pin
PaulS_UK3-Mar-15 23:07
PaulS_UK3-Mar-15 23:07 
Thanks Jochen

I might not have given you enough information. The actual text of the linking error message is:

In function `process(int, char*, ControlData*, char*, char*)':
PROCESS.CPP: (.text+0x788): undefined reference to `readsig(MiscParams*, char*)'
PROCESS.CPP: (.text+0xaac): undefined reference to `sig_save(Signal*, char*)'
PROCESS.CPP: (.text+0xdd4): undefined reference to `display(Signal*, MiscParams*, int)'.............
......etc etc etc

so there are many undefined references to functions from within the function 'process' contained in PROCESS.CPP

however; all these functions are defined in funcdefs.h as follows:

C#
extern int readsig ( MiscParams *misc , char *namelist , int *nsigs ,
                     Signal ***signals , char *error ) ;


etc etc etc

as I understand it, the various individual *.cpp files are referring to functions that are defined within funcdefs.h shouldn't these definitions be included from this file by the pre processor instruction and therefore be defined references?

Or are you saying that it is the function 'process' in PROCESS.CPP that is calling other undefined references? The very first such call is 'readsig' which is defined in functions.h

Or are you saying that I should just call functions.h functions.cpp?

This is driving me nuts so thanks for your help!

++++++++++EDIT+++++++++++

Jochen - I think I'm beginning to get your drift! The fundefs.h file only contains function prototypes not definitions Smile | :)

modified 4-Mar-15 5:19am.

GeneralRe: g++ Compiler not including header file Pin
Jochen Arndt3-Mar-15 23:26
professionalJochen Arndt3-Mar-15 23:26 
GeneralRe: g++ Compiler not including header file Pin
Richard MacCutchan3-Mar-15 23:26
mveRichard MacCutchan3-Mar-15 23:26 
QuestionAnother academic inquiry - what is the protected / private code purpose / function in this class generated by ATmel STudio Pin
Vaclav_3-Mar-15 5:10
Vaclav_3-Mar-15 5:10 
AnswerRe: Another academic inquiry - what is the protected / private code purpose / function in this class generated by ATmel STudio Pin
Richard MacCutchan3-Mar-15 5:44
mveRichard MacCutchan3-Mar-15 5:44 
AnswerRe: Another academic inquiry - what is the protected / private code purpose / function in this class generated by ATmel STudio Pin
Freak303-Mar-15 23:18
Freak303-Mar-15 23:18 
QuestionMake C dll as a COM DLL Pin
sourabhmehta2-Mar-15 22:30
sourabhmehta2-Mar-15 22:30 
AnswerRe: Make C dll as a COM DLL Pin
Richard MacCutchan2-Mar-15 22:49
mveRichard MacCutchan2-Mar-15 22:49 
QuestionHow to update the string value from one class to another class of Property page in mfc.I am getting an runtime error Pin
Member 114380211-Mar-15 18:46
Member 114380211-Mar-15 18:46 
AnswerRe: How to update the string value from one class to another class of Property page in mfc.I am getting an runtime error Pin
Richard MacCutchan1-Mar-15 22:55
mveRichard MacCutchan1-Mar-15 22:55 
GeneralRe: How to update the string value from one class to another class of Property page in mfc.I am getting an runtime error Pin
Member 114380212-Mar-15 16:47
Member 114380212-Mar-15 16:47 
GeneralRe: How to update the string value from one class to another class of Property page in mfc.I am getting an runtime error Pin
Richard MacCutchan2-Mar-15 21:13
mveRichard MacCutchan2-Mar-15 21:13 
GeneralRe: How to update the string value from one class to another class of Property page in mfc.I am getting an runtime error Pin
Member 114380212-Mar-15 23:59
Member 114380212-Mar-15 23:59 
GeneralRe: How to update the string value from one class to another class of Property page in mfc.I am getting an runtime error Pin
Richard MacCutchan3-Mar-15 0:17
mveRichard MacCutchan3-Mar-15 0:17 
GeneralRe: How to update the string value from one class to another class of Property page in mfc.I am getting an runtime error Pin
Member 114380219-Mar-15 17:48
Member 114380219-Mar-15 17:48 
GeneralRe: How to update the string value from one class to another class of Property page in mfc.I am getting an runtime error Pin
Richard MacCutchan9-Mar-15 22:13
mveRichard MacCutchan9-Mar-15 22:13 
AnswerRe: How to update the string value from one class to another class of Property page in mfc.I am getting an runtime error Pin
Freak302-Mar-15 1:35
Freak302-Mar-15 1:35 
GeneralRe: How to update the string value from one class to another class of Property page in mfc.I am getting an runtime error Pin
Member 114380212-Mar-15 22:22
Member 114380212-Mar-15 22:22 

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.