List Info

Thread: bjam doesn't generate lib file and linking subsequently fails




bjam doesn't generate lib file and linking subsequently fails
user name
2007-11-05 06:47:23
Dear all,

I'm using bjam to some project outside the boost root.

I have created a library by


#
# Library
#
lib bayesian :  [ glob ../src/*.cpp ] : <link>shared
;

The dll is created just fine, but the stub .lib file is not
created when 
I look in the output directory. Can anyone see what's going
on?

I'm getting the same result for 1.34 and trunk.

Thanks in advance

-Thorsten
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Re: bjam doesn't generate lib file and linking subsequently fails
user name
2007-11-05 07:01:05
> Dear all,
>
> I'm using bjam to some project outside the boost root.
>
> I have created a library by
>
>
> #
> # Library
> #
> lib bayesian :  [ glob ../src/*.cpp ] :
<link>shared ;
>
> The dll is created just fine, but the stub .lib file is
not created when
> I look in the output directory. Can anyone see what's
going on?
>
> I'm getting the same result for 1.34 and trunk.

Do you have any exported symbols in your project? MS linker
will not
generate a lib file if the dll doesn't export any symbols.
-- 
Bojan Resnik
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Re: bjam doesn't generate lib file and linking subsequently fails
user name
2007-11-06 04:56:41
Bojan Resnik skrev:
>> Dear all,
>>
>> I'm using bjam to some project outside the boost
root.
>>
>> I have created a library by
>>
>>
>> #
>> # Library
>> #
>> lib bayesian :  [ glob ../src/*.cpp ] :
<link>shared ;
>>
>> The dll is created just fine, but the stub .lib
file is not created when
>> I look in the output directory. Can anyone see
what's going on?
>>
>> I'm getting the same result for 1.34 and trunk.
> 
> Do you have any exported symbols in your project? MS
linker will not
> generate a lib file if the dll doesn't export any
symbols.

This was exactly the problem. Many thanks. I then got a
linker error 
with boost.test, but it turns out that boost.test does not
support dll's 
on windows.

Thanks

-Thorsten
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )