Error lnk2019: unresolved externa l symbol _ iob referenced in function _ output_message @ 4

Source: Internet
Author: User
  1. Vs2003, vs2005, vs2008:
  2. 0. Replace libjpeg. Lib in libjpeg_vc7 with libjpeg. Lib of vc6 in win32depends/lib.
  3. 1. Set include and lib to the include and library directories of vs200x.
  4. 2. Set win32depends/include and win32depends/lib to the include and library directories of vs200x.
  5. 3. Enable win32builds/libnge2.dsw to compile and convert all files.

  6. // If no value is set, the following message appears when the link is displayed.
  7. This error occurs during the link:
  8. Libjpeg. Lib (jerror. OBJ): Error lnk2019: unresolved external symbol _ iob referenced in function _ output_message
  9. // This error is mainly because the static library is compiled in vc6 and the main program is compiled in vc2005. The CRT is different for everyone. Solution: Add the following content to the Code in the file where the main function is located:
  10. # Ifdef _ cplusplus
  11. Extern "C"
  12. # Endif
  13. File _ iob [3] = {__ iob_func () [0], _ iob_func () [1], _ iob_func () [2]};
  14. The above method can also be solved, but this part of code should be replaced every time you create a new file. It is better to change the Lib

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.