L
lililevy
Hello,
I'm building a Perl wrapper for some C++ code using Visual Studio.NET.
My code is generic and simple C++ code.
In building the wrapper, I get lots of compiler warnings,
mostly regarding conversions:
warning C4244: 'initializing' : conversion from '__w64 int' to 'I32',
possible loss of data
warning C4312: 'type cast' : conversion from 'IV' to 'void *' of
greater size
warning C4267: 'argument' : conversion from 'size_t' to 'I32', possible
loss of data
The code works, but it's never a good idea to ignore these, and besides
they don't make
for confidence-inspiring build output.
Are there SWIG or Visual Studio compiler options I need to set to keep
these warnings from happening and get a clean build? (#pragma
warningdisable: x) doesn't
count).
Thanks in advance for anyone's help.
Lily.
I'm building a Perl wrapper for some C++ code using Visual Studio.NET.
My code is generic and simple C++ code.
In building the wrapper, I get lots of compiler warnings,
mostly regarding conversions:
warning C4244: 'initializing' : conversion from '__w64 int' to 'I32',
possible loss of data
warning C4312: 'type cast' : conversion from 'IV' to 'void *' of
greater size
warning C4267: 'argument' : conversion from 'size_t' to 'I32', possible
loss of data
The code works, but it's never a good idea to ignore these, and besides
they don't make
for confidence-inspiring build output.
Are there SWIG or Visual Studio compiler options I need to set to keep
these warnings from happening and get a clean build? (#pragma
warningdisable: x) doesn't
count).
Thanks in advance for anyone's help.
Lily.