How to use exiftool in vs~~~~~

Started by wyhcl00, June 05, 2018, 02:16:31 AM

Previous topic - Next topic

wyhcl00

 :)hello,I want to write a program that gets exif information in vs(2017) using c++
How to use exiftool in vs?
Should I use C++ ExifTool?
in Cygwin, when i input make,The command line shows that 'memmem' has not been declared in this scope~~~

Phil Harvey

C++ ExifTool should be good for you to use.

memmem is a gnu extension, but it has existed in FreeBSD since version 6.0.   If you don't have it available you could change the memmem call to this:

pt = strstr(pt, "{ready", end-pt);

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

wyhcl00

thanks,
now I want to get EXIF in my visual studio2017 c++ project. I mean, get GPSAltitude and GimbalRollDegree on the vs console.
Can I use C++ ExifTool?
I added exiftool's .h and.h and example3.cpp files to my vs project, as if it didn't run directly.

Phil Harvey

I haven't tried to compile this with visual studio c++.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).