Closed GoogleCodeExporter closed 9 years ago
Oops looks like something got cut off...
adam@office1:~/Downloads/ttf2eot-0.0.2$ make
g++ -c -o OpenTypeUtilities.o OpenTypeUtilities.cpp
OpenTypeUtilities.cpp:220:18: warning: multi-character character constant
OpenTypeUtilities.cpp:240:18: warning: multi-character character constant
OpenTypeUtilities.cpp:250:18: warning: multi-character character constant
OpenTypeUtilities.cpp: In function ‘bool getEOTHeader(unsigned char*, size_t,
std::vector<unsigned char, std::allocator<unsigned char> >&, size_t&, size_t&,
size_t&)’:
OpenTypeUtilities.cpp:190: warning: invalid access to non-static data member
‘sfntHeader::tables’ of NULL object
OpenTypeUtilities.cpp:190: warning: (perhaps the ‘offsetof’ macro was used
incorrectly)
OpenTypeUtilities.cpp:195: warning: invalid access to non-static data member
‘sfntHeader::tables’ of NULL object
OpenTypeUtilities.cpp:195: warning: (perhaps the ‘offsetof’ macro was used
incorrectly)
OpenTypeUtilities.cpp:252: warning: invalid access to non-static data member
‘nameTable::nameRecords’ of NULL object
OpenTypeUtilities.cpp:252: warning: (perhaps the ‘offsetof’ macro was used
incorrectly)
OpenTypeUtilities.cpp:258: warning: invalid access to non-static data member
‘nameTable::nameRecords’ of NULL object
OpenTypeUtilities.cpp:258: warning: (perhaps the ‘offsetof’ macro was used
incorrectly)
OpenTypeUtilities.cpp:311: error: ‘memcmp’ was not declared in this scope
make: *** [OpenTypeUtilities.o] Error 1
Original comment by adampl...@gmail.com
on 16 Apr 2009 at 9:21
I get the same result on Ubuntu 8.10 32bit
Original comment by adampl...@gmail.com
on 16 Apr 2009 at 9:23
Sorry for the spam... ;)
Looks like adding #include <string.h> after line 28 fixes it. I've uploaded a
quick-n-dirty patch.
Original comment by adampl...@gmail.com
on 16 Apr 2009 at 9:29
Attachments:
Oops! Forgot to commit that change, thanks for testing! Fixed.
Original comment by taviso
on 16 Apr 2009 at 9:30
Original issue reported on code.google.com by
adampl...@gmail.com
on 16 Apr 2009 at 9:18