franck-ohayon-sb / libsquish

Automatically exported from code.google.com/p/libsquish
MIT License
0 stars 0 forks source link

Multiple definition of int FloatToInt( float a, int limit ) #19

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This is not an issue but more a sugestion:

When building the Squish library with a custom build system where all the cpp 
files are concatenated into one big cpp, compilation errors occurs because of 
the function "int FloatToInt( float a, int limit )" which is defined 3 times in 
3 different cpp files (alpha.cpp singlecolourfit.cpp colourblock.cpp).

It could be usefull to "factorise" this code into a new file to avoid this kind 
of errors.

Thanks a lot

Original issue reported on code.google.com by clementv...@gmail.com on 29 Feb 2012 at 9:10