[Scons-users] .def file generation issue with SCons
Sumit Kothari
sumit8kothari at gmail.com
Fri Jul 9 07:54:21 EDT 2021
Hi,
I am facing an issue while generating .def file using SCons. I created
simple f1.c file and Sconstruct file as mentioned below.
f1.c
===
int fun()
{
int i=10;
i++;
return i;
}
Sconstruct
=======
env = Environment()
env['WIN32_INSERT_DEF']=1
env['WINDOWS_INSERT_DEF']=1
env.SharedLibrary('f1', source = ['f1.c'],
WINDOWS_INSERT_DEF=1,WIN32_INSERT_DEF=1)
Error message
=========
scons: *** [f1.dll] Source `f1.def' not found, needed by target `f1.dll'.
As per scons doc, it should create .def file but I am getting error. Can
you please give some hints on this.
[image: Mailtrack]
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
Sender
notified by
Mailtrack
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
07/09/21,
05:24:13 PM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20210709/64434bd0/attachment-0001.htm>
More information about the Scons-users
mailing list