c++ - warning LNK4098: defaultlib 'mfc110u.lib' conflicts with use of other libs -


well, warning when linking lib compiled using unicode character set while project uses multi-byte charset.

1>link : warning lnk4098: defaultlib 'mfc110u.lib' conflicts use of other libs; use /nodefaultlib:library 1>link : warning lnk4098: defaultlib 'mfcs110u.lib' conflicts use of other libs; use /nodefaultlib:library 

(note, other libs msvcrt etc. not involved) question how handle issue. can ignore or must add /nodefaultlib:lib (mfc110u.lib or mfc110.lib???) in case?

thanks in advance

there several options available (same applied similar warnings mixing debug/release libraries).

1) rebuild using same project specification, either multi-byte or unicode in case

2) leave is, take care of data passed across application , library uses different runtime. dont pass library can treated wrong based on other runtime. in case of debug/release issue means example dont free() or delete[] allocated in library , vice versa.. same in case if library expects parameters being unicode should take steps provide proper strings library functions.


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -