Taglib not linking statically
morbid code
morbidcode666 at gmail.com
Mon Aug 24 07:34:37 UTC 2015
Hi guys, I'm new in this mailing list.
from C:\taglib\include/taglib/tlist.h:255,
from C:\taglib\include/taglib/tstringlist.h:30,
from C:\taglib\include/taglib/fileref.h:30,
from ..\metadata.cpp:1:
C:\taglib\include/taglib/trefcounter.h:36:0: warning: "NOMINMAX" redefined
# define NOMINMAX
^
In file included from
C:/mingw-w64/x86_64-5.1.0-posix-seh-rt_v4-rev0/mingw64/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/c++config.h:482:0,
from
C:/mingw-w64/x86_64-5.1.0-posix-seh-rt_v4-rev0/mingw64/x86_64-w64-mingw32/include/c++/string:38,
from C:\taglib\include/taglib/taglib.h:47,
from C:\taglib\include/taglib/tfile.h:30,
from C:\taglib\include/taglib/fileref.h:29,
from ..\metadata.cpp:1:
C:/mingw-w64/x86_64-5.1.0-posix-seh-rt_v4-rev0/mingw64/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/os_defines.h:45:0:
note: this is the location
of the previous definition
#define NOMINMAX 1
^
g++ "-LC:\\taglib\\lib" -o fileMetadata.exe metadata.o -ltag
metadata.o: In function `main':
C:\cpp_workspace\fileMetadata\Debug/../metadata.cpp:4: undefined
reference to `__imp__ZN6TagLib8FileNameC1EPKc'
C:\cpp_workspace\fileMetadata\Debug/../metadata.cpp:4: undefined
reference to `__imp__ZN6TagLib7FileRefC1ENS_8FileNameEbNS_15AudioProperties9ReadStyleE'
C:\cpp_workspace\fileMetadata\Debug/../metadata.cpp:5: undefined
reference to `__imp__ZNK6TagLib7FileRef3tagEv'
C:\cpp_workspace\fileMetadata\Debug/../metadata.cpp:6: undefined
reference to `__imp__ZNK6TagLib7FileRef3tagEv'
C:\cpp_workspace\fileMetadata\Debug/../metadata.cpp:6: undefined
reference to `__imp__ZN6TagLib6StringC1EPKcNS0_4TypeE'
C:\cpp_workspace\fileMetadata\Debug/../metadata.cpp:6: undefined
reference to `__imp__ZN6TagLib6StringD1Ev'
C:\cpp_workspace\fileMetadata\Debug/../metadata.cpp:7: undefined
reference to `__imp__ZN6TagLib7FileRef4saveEv'
C:\cpp_workspace\fileMetadata\Debug/../metadata.cpp:5: undefined
reference to `__imp__ZN6TagLib6StringD1Ev'
C:\cpp_workspace\fileMetadata\Debug/../metadata.cpp:4: undefined
reference to `__imp__ZN6TagLib7FileRefD1Ev'
C:\cpp_workspace\fileMetadata\Debug/../metadata.cpp:6: undefined
reference to `__imp__ZN6TagLib6StringD1Ev'
C:\cpp_workspace\fileMetadata\Debug/../metadata.cpp:5: undefined
reference to `__imp__ZN6TagLib6StringD1Ev'
C:\cpp_workspace\fileMetadata\Debug/../metadata.cpp:4: undefined
reference to `__imp__ZN6TagLib7FileRefD1Ev'
collect2.exe: error: ld returned 1 exit status
00:13:17 Build Finished (took 24s.291ms)
What am I doing wrong? Should I include zlib as well? But according to
the docs it's optional.
More information about the taglib-devel
mailing list