Created
June 10, 2012 21:24
-
-
Save Dav1dde/2907399 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <squish.h> | |
typedef unsigned char u8; | |
extern "C" { | |
void CompressMasked( u8 const* rgba, int mask, void* block, int flags, float* metric ) { | |
squish::CompressMasked(rgba, mask, block, flags, metric); | |
} | |
void Compress( u8 const* rgba, void* block, int flags, float* metric = 0 ) { | |
squish::Compress(rgba, block, flags, metric); | |
} | |
void Decompress( u8* rgba, void const* block, int flags ) { | |
squish::Decompress(rgba, block, flags); | |
} | |
int GetStorageRequirements( int width, int height, int flags ) { | |
return squish::GetStorageRequirements(width, height, flags); | |
} | |
void CompressImage( u8 const* rgba, int width, int height, void* blocks, int flags, float* metric ) { | |
squish::CompressImage(rgba, width, height, blocks, flags, metric); | |
} | |
void DecompressImage( u8* rgba, int width, int height, void const* blocks, int flags ) { | |
squish::DecompressImage(rgba, width, height, blocks, flags); | |
} | |
} | |
─[ArchBox][~/workspaces/python/dbpf]╼ g++ -lsquish squish_ex.cpp | |
/tmp/ccts1taS.o: In function `CompressMasked': | |
squish_ex.cpp:(.text+0x22): undefined reference to `squish::CompressMasked(unsigned char const*, int, void*, int)' | |
/tmp/ccts1taS.o: In function `Compress': | |
squish_ex.cpp:(.text+0x43): undefined reference to `squish::Compress(unsigned char const*, void*, int)' | |
/tmp/ccts1taS.o: In function `Decompress': | |
squish_ex.cpp:(.text+0x64): undefined reference to `squish::Decompress(unsigned char*, void const*, int)' | |
/tmp/ccts1taS.o: In function `GetStorageRequirements': | |
squish_ex.cpp:(.text+0x85): undefined reference to `squish::GetStorageRequirements(int, int, int)' | |
/tmp/ccts1taS.o: In function `CompressImage': | |
squish_ex.cpp:(.text+0xb4): undefined reference to `squish::CompressImage(unsigned char const*, int, int, void*, int)' | |
/tmp/ccts1taS.o: In function `DecompressImage': | |
squish_ex.cpp:(.text+0xe3): undefined reference to `squish::DecompressImage(unsigned char*, int, int, void const*, int)' | |
collect2: Fehler: ld gab 1 als Ende-Status zurück |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment