Googles appar
Huvudmeny

Post a Comment On: cbloom rants

"11-02-11 - StringMatchTest Release"

7 Comments -

1 – 7 of 7
Blogger Cyan said...

For your information, i had some trouble compiling cblib with VS2008 unfortunately. Stringmatchtest itself went fine, but obviously linking cannot be completed without cblib.

Oh well, i can understand that you have better things to do.

November 3, 2011 at 5:53 PM

Blogger cbloom said...

Did you try again? I updated cblib since you sent me that report, this builds with 2008 for me.

I try to fix any build problems reported but it can take me a little while to get around to. VC 2010 looks like a huge pain in the butt.

I was gonna rant about the stupid fucking change to the Directories settings, but plenty of other people have already ranted about it :

http://social.msdn.microsoft.com/Forums/en/vcgeneral/thread/a494abb8-3561-4ebe-9eb0-6f644a679862

November 3, 2011 at 7:23 PM

Blogger Cyan said...

Yes, indeed. I've been trying to compile the latest release posted in your blog.
My first issue was about the .vcproj file, which seems incompatible/does not work with VS2008. Not a big issue, i've created a new project which encompasses basically all *.c and *.h files in cblib directory.

Then trying to compile cblib, i'm receiving a lot of errors. So it cannot be summarize here.

A lot of them have something to do with "W" Wide format, such as :

error C2664: 'CreateWindowExW' : impossible de convertir le paramètre 2 de 'const char *' en 'LPCWSTR'

I'll send a copy of the error list in email. Sorry for the french spelling.

November 4, 2011 at 8:45 AM

Blogger jfb said...

You're compiling with UNICODE defined.

November 4, 2011 at 9:27 AM

Blogger cbloom said...

The vcproj is 2005; for me it converts automatically without any problems.

The W problem is definitely the stupid Windows TCHAR / #define UNICODE thing.

But yeah email me any errors.

November 4, 2011 at 9:57 AM

Blogger Cyan said...

Indeed, with unicode turned off (that one was difficult to find...), it works much better.
Still, not perfect. I have several errors remaining in cblib.
The list is too long to post here, so i'll send an email. But for example :

A simple one :
1> bmpimagejpeg.cpp(17) : fatal error C1083: Impossible d'ouvrir le fichier include : 'C:\src\cblib\External\libjpg/jpeglib.h' : No such file or directory

Hard-coded path. Plus the jpeglib is not in external anyway.

A more complex one :
1>c:\program files\microsoft visual studio 9.0\vc\include\xutility(315) : error C2664: 'bool cb::pair_key_bool_binary_functor::operator ()(const Pair &,const cb::Token &) const' : impossible de convertir le paramètre 1 de 'const cb::Token' en 'const std::pair<_Ty1,_Ty2> &'

November 5, 2011 at 5:19 AM

Blogger cbloom said...

Okay, new version of cblib should work with the MSVC STL under VC 2005 and 2008. STLPort is still recommended though.

Also options are gathered in cblib_config.h so you can disable trying to pull in png & jpeglib.

November 5, 2011 at 11:55 AM

You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.