Re: [softwerk-dev] Troubles with Softwerk
Status: Beta
Brought to you by:
pbd
|
From: Paul Barton-D. <pb...@op...> - 2000-11-28 03:51:03
|
In message <3A2...@br...>you write:
>Greetings:
>
> It compiled fine, not one complaint. So what do you think is happening
i have an idea. a fairly good idea. and its a problem in every single
library of mine. observe:
>> int main(int argc,char **argv)
>> {
>> if (pbd_major_version!=1 ||
>> pbd_minor_version!=1 ||
>> pbd_micro_version!=1)
>> { printf("(%d.%d.%d) ",
>> pbd_major_version,pbd_minor_version,pbd_micro_version);
>> return 1;
>> }
>> }
now, what do you suppose this program returns if the versions numbers
*do* match ?
10 extra points if you can say "its undefined".
once i hear from you the result of running it, i'll put together a new
version of the tarball. you can either add:
return 0;
as the final statement of main(), or get the new tarball, heh,
heh. strictly speaking, all my libraries need this. i'll leave it to
you whether to patch them by hand (for library "foo", its
.../softwerk/libs/src/foo/foo.m4 that contains the relevant source code)
BTW, I got this program from some other GNU auto*-using program. I
wonder how many other programs have this problem ? or was it just me
forgetting to add the "return 0;" in place.
I hope this is really the problem - its a giant discovery for me, even
if its not the problem. so thanks.
--p
ps. for CVS users, the changes have just been committed.
|