PDA

View Full Version : IlPathName::queryChangedStatusTime() under Win Seven 32 bits



davy.khuu
07-25-2014, 09:37 AM
Hi,

I get the following error with queryChangedStatusTime :

error LNK2019: unresolved external symbol "public: bool __thiscall IlPathName::queryChangedStatusTime(long &)const " (?queryChangedStatusTime@IlPathName@@QBE_NAAJ@Z)

Original project was maintained under Visual Studio 2003, with Win XP 32 bits. The new one is maintained under Win Seven 32 bits / VS 2010. So I put the preprocessor variable _USE_32BIT_TIME_T on.

Original code is as following :

time_t dateFile;
file.queryChangedStatusTime( (time_t &) dateFile );

time_t should be resolved as long, but the linker cannot resolve queryChangedStatusTime(long &). In the link option, path library is defined as : C:\Program Files\Rogue Wave\Views 5.7\lib\x86_.net2010_10.0

Could you help to fix this issue? Thank you.

cmartin
07-28-2014, 12:15 AM
Hello,
Obviously you found the origin of your issue ;-)
The library was build using the default settings i.e. no _USE_32BIT_TIME_T, hence the type time_t resolves to __int64 not long as is the case when using the flag you set.
The only solution is to remove this flag.

Claude