Results 1 to 2 of 2

Thread: IlPathName::queryChangedStatusTime() under Win Seven 32 bits

  1. #1
    Junior Member
    Join Date
    Jul 2014
    Posts
    3

    IlPathName::queryChangedStatusTime() under Win Seven 32 bits

    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.

  2. #2
    Junior Member
    Join Date
    Oct 2012
    Posts
    29
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •