G
Guest
Hello,
I have a strange situation where I'm trying to export a function in a class,
but it won't get exported. I actually have a couple of header and cpp files.
Each pair of header and cpp files contain a class and each class exports a
couple of static functions. In the one file, the class is properly exported.
I can verify this by dumpbin /exports. But the other class doesn't show up.
In my case, there's actually two projects involved. The first compiles to a
lib file. It's in this project where I export the functions. A second
project links to the lib file generated by the first project and produces a
regular MFC DLL. It's this DLL that I tried to view export functions from,
but functions defined in one file won't appear.
I modified the second set of header and cpp files so that they're nearly
identical to the working set; the only difference being the name of the files
and the class name. This didn't help. I then added similar second classes
(that export functions) to each pair of header/cpp files. For the original
working set, the second class appears. But in the case of the second set of
header/cpp files, nothing is exported. I compared the the properties on the
files as recorded in the .vcproject file for the two cpp files and they are
identical. I also did a visual comparison in the cpp file property pages and
could see no differences.
How is that one virtually identical file will properly export functions
while the exported functions in the second file will not work?
Thanks,
Notre
I have a strange situation where I'm trying to export a function in a class,
but it won't get exported. I actually have a couple of header and cpp files.
Each pair of header and cpp files contain a class and each class exports a
couple of static functions. In the one file, the class is properly exported.
I can verify this by dumpbin /exports. But the other class doesn't show up.
In my case, there's actually two projects involved. The first compiles to a
lib file. It's in this project where I export the functions. A second
project links to the lib file generated by the first project and produces a
regular MFC DLL. It's this DLL that I tried to view export functions from,
but functions defined in one file won't appear.
I modified the second set of header and cpp files so that they're nearly
identical to the working set; the only difference being the name of the files
and the class name. This didn't help. I then added similar second classes
(that export functions) to each pair of header/cpp files. For the original
working set, the second class appears. But in the case of the second set of
header/cpp files, nothing is exported. I compared the the properties on the
files as recorded in the .vcproject file for the two cpp files and they are
identical. I also did a visual comparison in the cpp file property pages and
could see no differences.
How is that one virtually identical file will properly export functions
while the exported functions in the second file will not work?
Thanks,
Notre