This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

linking to changed header file


> Hi All,
> 
> I want some explanation regarding a problem which I faced recently, so thought of posting my query over here so that
> I can get some explanation from a c++ expert.
> 
> My query:
> I am having a third party software, and they provide me with header files and .so(dymamic link libraries), take note that 
> I do not have any implementation file.
> 
> I had changed one of the header files due to some purpose and the change I made is I had commented one of the 
> method
> Class Action
> {
>     //virtual void setRequestId(int id);   //my change to the actual header file
>     virtual void setActionId(int id);
>     virtual int actionId() const;
> 
> }
> 
> I had used the changed header file to compile my codes and link to the library which the third party software provided.
> 
> example
> int main (){
>     Action act;
>     act.setActionId(100);
>     cout << "action id is " << atc.actionId() << endl;
> }
> Output:
> action id is 0
> 
> I found that my code's are not working as expected, but If I undo the changes to the third party software I found my codes are working properly.
> 
> I wish some one will give me some satisfying answer, I appreciate everyone for answering my query.
> 
> 
> Regards
> Marri Devender Rao
> Software Engineer
> 24, Ang Mo Kio Street 65,
> Singapore 569061
> Phone: 64131381(O), 65833061(H)
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]