Select to view content in your preferred language

C1084 error on #import "esriGeoDatabase.olb"

1217
1
06-24-2010 01:43 PM
KevinLogan
New Contributor
Hello, I have an interesting issue that I cannot figure out.
Recently my company (Maptek) upgraded their development contract to the newest version so we could fix our import/export code for .TIN files. Most of the code I had to change was dealing with authorization, and I eventually got it working. But we have an automatic build machine here that will find and report errors with the current build, and though the version built on my machine (with the development tools installed on it) it will not work with the build machine (when I included the .olb files needed), and fails while trying to import esriGeoDatabase.olb with this error:
"fatal error C1084: Cannot read type library file: 'esriGeoDatabase.olb': Error loading type library/DLL."
What could cause this error happening on every machine but mine? I obviously have the development tools needed, but with our old version of the import/export code we only needed to include the olb files with our submissions for them to build on any machine.
Our code is in C++ and we compile using the Visual Studio 2005 compiler.
Thanks ahead of time for any help!
0 Kudos
1 Reply
KevinLogan
New Contributor
I have fixed the issue. The error message wasn't very descriptive, but using procmon I was able to monitor all of the file reads enacted by our compiler. I eventually discovered that esriServer.olb was required as well, even though it wasn't necessary as an #import, it must have been a dependency from another .olb or something like that. Just wanted to post this in case anyone else ever has this issue.
0 Kudos