Could you help me please:
I'm writing printer driver, based on standart unidrv and i'd like to use another library in my driver. But while compiling the driver I receive following errors:
d:\WINDDK\2600.1106\inc\crt\istream(564) : error C2220: warning treated as error - no object file generated
d:\WINDDK\2600.1106\inc\crt\istream(564) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
d:\sp\vprinter_new\src\include\gdal_priv.h(393) : warning C4251: 'GDALColorTable::aoEntries' : class 'std::vector<_Ty,_A>' needs to have dll-interface to be used by clients of class 'GDALColorTable'
d:\WINDDK\2600.1106\inc\crt\ostream(255) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
d:\WINDDK\2600.1106\inc\crt\ostream(250) : while compiling class-template member function 'std::basic_ostream<_E,_Tr>::_Myt &std::basic_ostream<_E,_Tr>::put(_E)'
d:\WINDDK\2600.1106\inc\crt\ostream(298) : see reference to class template instantiation 'std::basic_ostream<_E,_Tr>' being compiled
and so on...
Do you know what should I do?
Jump to Post
What compiler/version are you using? I have had warning C4530 with winCE and solved the problem by adding -GX to the compile flags. http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=195818&SiteID=1
All 2 Replies
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.