Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libjpeg.lib was created with an older compiler than other objects in project ARWrapper #166

Open
snowymo opened this issue Jun 19, 2018 · 0 comments

Comments

@snowymo
Copy link

snowymo commented Jun 19, 2018

Project ARvideo is a dependent project to project ARWrapper. There are two libjpeg.lib in win64-x64 and win32-i386 folder. Also I made one by my own through source jpeg-6b.

First I build ARvideo

  1. I used the libjpeg.lib in lib/win64-x64. It successfully built.
  2. I used the libjpeg.lib in lib/win32-i386. So many unresolved external errors.
  3. I used the one made by my own. Also unresolved external symbols showed up.

Then I build ARWrapper

  1. It said the libjpeg.lib is built by an old compiler
  2. and 3) ended up as the same unresolved external symbols.

One thing I changed is, use extern "C" {#include <jpeglib.h>} instead of #include <jpeglib.h> for *.cpp file which include the header because libjpeg is a c library.

LINK : fatal error C1047: The object or library file 'C:\Users\zhenyihe\Dropbox (Facebook)\intern\artoolkitx\artoolkit5\VisualStudio\vs2017\..\..\lib\libjpeg.lib' was created with an older compiler than other objects; rebuild old objects and libraries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant