[GnuWin32-Users] [SourceForge.net Release] gnuwin32 : freetype

2007-07-04 Thread SourceForge.net
Project: GnuWin32  (gnuwin32)
Package: freetype
Date   : 2007-07-05 01:35

Project "GnuWin32" ('gnuwin32') has released the new version of package 
'freetype'.
You can download it from SourceForge.net by following this link:

or browse Release Notes and ChangeLog by visiting this link:
 

You receive this email because you requested to be notified when new versions
of this package were released. If you don't wish to be notified in the future,
please login to SourceForge.net and click this link:

If you lost your SourceForge.net login name or password, refer to this document:


Note that you may receive this message indirectly via one of your mailing list
subscriptions. Please review message headers before reporting unsolicited
mailings.

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
GnuWin32-Announce mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/gnuwin32-announce

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


[GnuWin32-Users] scandir doesn't work??

2007-07-04 Thread Tor Lillqvist
tuitfun writes:
 > i am new to gnuwin32. i am trying to compile a test program from glibc that
 > uses scandir. i compiled it with:
 > gcc scandirtst.c -I/c/Program\ Files/GnuWin32/include/glibc/  /c/Program\
 > Files/GnuWin32/lib/libgw32c.a -lole32 -luuid -o scandirtst

please note that scandir() is not portable even across Unix platforms.

No offence to the people behind gnuwin32, in general their porting
effort is very nice. But I think one should avoid using "libgw32c" if
at all possible.

What follows is a bit of a rant, and not relevant just for test and
toy programs. But if you intend to write something more substantial
for a wider audience, please take these points into consideration.

You are making yourself a disfavour if you think that you can use Unix
code directly on Windows, especially code that needs to handle *any*
file name that might occur on a Windows system. You might not yourself
have ever seen files with names in anything else than your locale's
codepage. But this issue is important if your code has or might
eventually have users all over the world. In some locales it might be
quite common to come across files with names that can't be expressed
in the system codepage. For instance, in Israel I guess it happens
that one needs to handle both Hebrew and Arabic file names (in
addition to file names in just plain ASCII).

On Unix, file names are just a sequence of bytes (C type char). Any
interpretation of these byte sequences is up to user-level code, the
kernel doesn't care. 

On Windows file names are in Unicode encoded as UTF-16, i.e. a
sequence of two-byte "words" (C type wchar_t). Using char APIs like
scandir() or opendir(), readdir(), closedir() will not be able to
return all files names from a folder. Use the _wopendir(), _wreaddir()
and _wclosedir() functions instead.

You might want to wrap this into something cross-platform, that would
use the wide-character APIs on Windows. Use UTF-8 for filenames in
your upper level code, converting to UTF-16 only when you actually
call the wide char APIs to manipulate files. Luckily most modern
Unixes strongly suggest UTF-8 is used for file name encodings, so you
won't need to do any conversions to your UTF-8 filenames on Unix.

Or, you could use a cross-platform library that already does all this,
like GLib.

--tml

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


[GnuWin32-Users] Pcre static library

2007-07-04 Thread tuitfun
hi again,

Pcre package only has libpcre.dll.a (no libpcre.a). can i build a program that
links statically to Pcre? i tried to compile pcredemo.c and it ran fine with
dynamic linking. however, when i tried to compile statically with:

$ gcc -static pcredemo.c -o pcredemo -I/c/Program\ Files/GnuWin32/include/
-L/c/Program\ Files/GnuWin32/lib/ -lpcre

i got these errors:
C:/DOCUME~1/x/LOCALS~1/Temp/cc0qfaaa.o:pcredemo.c:(.text+0x1d5): undefined
reference to `_imp__pcre_free'
C:/DOCUME~1/x/LOCALS~1/Temp/cc0qfaaa.o:pcredemo.c:(.text+0x407): undefined
reference to `_imp__pcre_free'
C:/DOCUME~1/x/LOCALS~1/Temp/cc0qfaaa.o:pcredemo.c:(.text+0x501): undefined
reference to `_imp__pcre_free'
C:/DOCUME~1/x/LOCALS~1/Temp/cc0qfaaa.o:pcredemo.c:(.text+0x6cd): undefined
reference to `_imp__pcre_free'
collect2: ld returned 1 exit status



   

Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos & more. 
http://mobile.yahoo.com/go?refer=1GNXIC

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users


[GnuWin32-Users] scandir doesn't work??

2007-07-04 Thread tuitfun
hello,

i am new to gnuwin32. i am trying to compile a test program from glibc that
uses scandir. i compiled it with:
gcc scandirtst.c -I/c/Program\ Files/GnuWin32/include/glibc/  /c/Program\
Files/GnuWin32/lib/libgw32c.a -lole32 -luuid -o scandirtst

it produced an exe file but the result was blank. here is the output
$ ../scandirtst.exe 
found , len 0
found , len 0
found , len 0
found , len 0
found , len 0
found , len 0
found , len 0

please let me know if i did something wrong. this is the source:
#include 
#include 

int one(const struct dirent *unused)
{
return 1;
}

int main(void)
{
struct dirent **eps;
int n;

n = scandir("./", &eps, one, alphasort);
if (n >= 0) {
int cnt;
for (cnt = 0; cnt < n; ++cnt) {
char *name = eps[cnt]->d_name;
printf("found %s, len %d\n", name, strlen(name));
}
} else
perror("Couldn't open the directory");

return 0;
}





   

Choose the right car based on your needs.  Check out Yahoo! Autos new Car 
Finder tool.
http://autos.yahoo.com/carfinder/

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users