.obj file help
-
Hello everybody, I have a class with one member function and member variable declared in the header file. I have compiled my code and created obj file. When I opened the obj file I saw the decorated member function in the obj file. But I couldn't find the member variable in the obj file. I want to know whether compiler keep the member declared in my class in obj file or not? Please help me. -aji
-
Hello everybody, I have a class with one member function and member variable declared in the header file. I have compiled my code and created obj file. When I opened the obj file I saw the decorated member function in the obj file. But I couldn't find the member variable in the obj file. I want to know whether compiler keep the member declared in my class in obj file or not? Please help me. -aji
Well the class member is of course there. Anyway using
dumpbin
I may hardly find it (I assigned a fancy bit pattern to). In fact there is no symbolic name (or I failed to grab it). :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Hello everybody, I have a class with one member function and member variable declared in the header file. I have compiled my code and created obj file. When I opened the obj file I saw the decorated member function in the obj file. But I couldn't find the member variable in the obj file. I want to know whether compiler keep the member declared in my class in obj file or not? Please help me. -aji
If it's a member function then it will not need a decorated name, as it is merely defined by the compiler as an offset into the object. When an object is instantiated the code will refer to it by its memory address, and the variable will be located by the offset value.
txtspeak is the realm of 9 year old children, not developers. Christian Graus