Web lists-archives.org

[Mingw-users] Re: w32api uuid.lib generation for pocket pc




Pedro Alves wrote:
> At the top of uuid.c is says:
> "  This file was generated by extracting the names of all GUIDs
>  from uuid.lib. The names were in turn processed by a script
>  to build a C program that when run generated this file.
>  Some definitions were added by hand afterwards."
>
> Is there somewhere where I can get this script and C program? I want to
> do the same for pocket pc sdk.

Earnie Boyd wrote:
> There is a pexports script that will create a .def file from the .lib 
> if you have the associated header.

This won't work because uuid.lib is a static library.  

It shouldn't be too hard to write a script yourself to do this.
Something like:

	nm -p uuid.lib | awk -f uuid.awk > uuid.c

Where uuid.awk is something like:

	$2 == "R" {
		print "printf(\"GUID const", $3, "= { %d, %d, ...};\\n\",", \
			$3, ".Data1,", $3, ".Data2,", ..., "};"
	}

					Ross Ridge



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users