Displaying 14 results from an estimated 14 matches for "_crt_secure_no_warnings".
2007 Nov 07
4
[LLVMdev] LLVM 2.1 with VC++
...n the project
2) System/Win32/DynamicLibrary.inc - ELM_Callback is declared with a
PSTR ModuleName argument. This causes a compile error - the callback
typedef specifies PCSTR.
Also, I'd like to suggest adding the following to config.h, to
eliminate the spurious deprecation warnings:
#define _CRT_SECURE_NO_WARNINGS
#define _SCL_SECURE_NO_WARNINGS
#define _CRT_NONSTDC_NO_WARNINGS
And moving #include "llvm/Config/config.h" in all the files above any
other includes, so those will have the proper effect.
Finally, is the JIT considered stable under Windows?
--
Cory Nelson
2007 Nov 07
1
[LLVMdev] LLVM 2.1 with VC++
> Also, I'd like to suggest adding the following to config.h, to
> eliminate the spurious deprecation warnings:
>
> #define _CRT_SECURE_NO_WARNINGS
> #define _SCL_SECURE_NO_WARNINGS
> #define _CRT_NONSTDC_NO_WARNINGS
>
> > And moving #include "llvm/Config/config.h" in all the files above any
> > other includes, so those will have the proper effect.
Can we guard those defines like so?
#if defined _MSC_VER &...
2008 May 21
3
[LLVMdev] 2.3 Pre-release available for testing
Razvan Aciu wrote:
> As I saw from the mailing list the MSVC 2005 patches were made to take into
> account the new files from the development branch, files which are not in
> the 2.3 release. So for now the below patch is the only one functional for
> the release. If I am wrong, please someone correct me.
>
> If someone can make a 2005 patch for the release branch, it is ok.
2007 Nov 07
0
[LLVMdev] LLVM 2.1 with VC++
...I've come across a couple errors when building LLVM 2.1 in VC++ 2005.
You might want to try LLVM SVN. I believe Hartmut has made several
improvements.
> Also, I'd like to suggest adding the following to config.h, to
> eliminate the spurious deprecation warnings:
>
> #define _CRT_SECURE_NO_WARNINGS
> #define _SCL_SECURE_NO_WARNINGS
> #define _CRT_NONSTDC_NO_WARNINGS
>
> And moving #include "llvm/Config/config.h" in all the files above any
> other includes, so those will have the proper effect.
If LLVM SVN doesn't have these improvements, please consider sending i...
2008 Nov 25
0
[LLVMdev] Removal of Visual Studio project files.
...those defines and I will add an option for enabling them all
> with a single -D cmake option.
>
He's talking about how VC++ deprecated (with warnings) many C/C++
functions (like strcpy, sprintf, std::copy, etc.) that a dumb
developer could get exploited with. Turn them off with these:
_CRT_SECURE_NO_WARNINGS // C deprecation
_SCL_SECURE_NO_WARNINGS // C++ deprecation
In addition to those, for Release builds I recommend disabling the
"secure" stdlib features which does bounds checking and slows down a
lot of good code:
_SECURE_SCL=0 // slow secure stdlib.
--
Cory Nelson
http://www.int64.or...
2015 Sep 03
4
LLVM 3.7.0 build errors on Windows
...llvm\Object\COFF.h 52
All the errors are reported in LLVM header files, mostly
llvm/Support/COFF.h and llvm/Object/COFF.h
I'm using Visual Studio Community 2015, the CXX compiler identification
is MSVC 19.0.23026.0
My CPP includes are:
WIN32
_WINDOWS
NDEBUG
_CRT_SECURE_NO_DEPRECATE
_CRT_SECURE_NO_WARNINGS
_CRT_NONSTDC_NO_DEPRECATE
_CRT_NONSTDC_NO_WARNINGS
_SCL_SECURE_NO_DEPRECATE
_SCL_SECURE_NO_WARNINGS
__STDC_CONSTANT_MACROS
__STDC_FORMAT_MACROS
__STDC_LIMIT_MACROS
_GNU_SOURCE
%(PreprocessorDefinitions)
Now, a couple of things are suspicious:
- in googling around it seems like there are some pro...
2014 Oct 02
2
[LLVMdev] Header File Not Found?
...\[dest-sub-dir]\include
/IC:\[SDK-dir]\[SDK-source-dir]\[SDK-sub-dir]\include
/IC:\[SDK-dir]\[SDK-source-dir]\[SDK-sub-dir]\include\[include-sub-dir]
/Zi /nologo /W3 /WX- /Od /D WIN32 /D _DEBUG /D _WINDOWS /D _USRDLL /D
[elided] /D _t_env_os_WIN32 /D [also-elided] /D _SCL_SECURE_NO_WARNINGS
/D _CRT_SECURE_NO_WARNINGS /D OBJC_OLD_DISPATCH_PROTOTYPES=1 /D _WIN64
/D "__x86_64__= 1" /D _WINDLL /D _UNICODE /D UNICODE /Gm- /EHsc /RTC1
/MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Debug\x64\\"
/Fd"Debug\x64\vc120.pdb" /Gd /TP /wd4068 /wd4200 /wd4244 /wd4267 /wd4305
/wd4309 /wd4311...
2008 Nov 25
2
[LLVMdev] Removal of Visual Studio project files.
OvermindDL1 <overminddl1 at gmail.com> writes:
>> Chris proposed on IRC to remove the Visual Studio project files and turn
>> CMake into the "standard" for building LLVM with VC++.
>>
>> If you have strong arguments against this, please voice them.
>
> As long as instructions are supplied on how to pass in user defined
> macros to the build system.
2014 Oct 01
2
[LLVMdev] size_t?
...hat crtdefs.h is trying to redefine
>> size_t from an unsigned int to an unsigned long long...
>>
>> Perhaps one of my preprocessor defines is causing these errors:
>>
>> WIN32
>> _DEBUG
>> _WINDOWS
>> _USRDLL
>> _SCL_SECURE_NO_WARNINGS
>> _CRT_SECURE_NO_WARNINGS
>> _WIN64
>> _x86_64_ = 1
>>
>> (I added the "SECURE_NO_WARNINGS" defines when I ported an earlier
>> version of this code to VS 2005; don't remember why any more...)
>> (There are a couple of other defines that are specific to the DLL I'm
>&...
2014 Oct 01
2
[LLVMdev] size_t?
...;
> Later on, I get an error saying that crtdefs.h is trying to redefine
> size_t from an unsigned int to an unsigned long long...
>
> Perhaps one of my preprocessor defines is causing these errors:
>
> WIN32
> _DEBUG
> _WINDOWS
> _USRDLL
> _SCL_SECURE_NO_WARNINGS
> _CRT_SECURE_NO_WARNINGS
> _WIN64
> _x86_64_ = 1
>
> (I added the "SECURE_NO_WARNINGS" defines when I ported an earlier version
> of this code to VS 2005; don't remember why any more...)
> (There are a couple of other defines that are specific to the DLL I'm
> trying to build)
>
&g...
2014 Sep 30
2
[LLVMdev] size_t?
Hi Reid,
I copied the x64 toolsets by hand; they got installed to C:\Program
Files (x86)\LLVM\tools\msbuild\x64; they just didn't get moved correctly
by install.bat.
I just verified that the LLVM-vs2013 toolset.props is correct.
If it is a bitness problem, perhaps I'm failing to define something
correctly?
Regards,
Eric
On 9/30/14, 11:29 AM, Reid Kleckner wrote:
> This looks
2020 Aug 15
5
Supporting libunwind on Windows 10 (32bit; 64bit) for MSVC and Clang
...revious
declaration is here
extern int unw_is_signal_frame(unw_cursor_t *) LIBUNWIND_AVAIL;
^
C:/Users/clang/libunwind/src/libunwind.cpp:293:12: warning: 'getenv' is
deprecated: This function or variable may be unsafe. Consider using
_dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See
online help for details. [-Wdeprecated-declarations]
log = (getenv("LIBUNWIND_PRINT_APIS") != NULL);
^
C:\Program Files\Windows
Kits\10\include\10.0.18362.0\ucrt\stdlib.h:1190:20: note: 'getenv' has been
explicitly marked deprecated here
_Check_return_ _CRT...
2008 Nov 25
2
[LLVMdev] Removal of Visual Studio project files.
...your own preprocessor definitions would
>>> be great.
>>
[snip]
> He's talking about how VC++ deprecated (with warnings) many C/C++
> functions (like strcpy, sprintf, std::copy, etc.) that a dumb
> developer could get exploited with. Turn them off with these:
>
> _CRT_SECURE_NO_WARNINGS // C deprecation
> _SCL_SECURE_NO_WARNINGS // C++ deprecation
>
Those and others already are defined by default:
if( MSVC )
add_definitions( -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS )
add_definitions( -D_SCL_SECURE_NO_WARNINGS -DCRT_NONSTDC_NO_WARNINGS )
add_definitions( -...
2008 Feb 18
3
[LLVMdev] Is there someone tried LLVM 2.1 on Visual Studio 2005?
>There's a config.h file in the win32 subdirectory that implies that
it's
>supposed to be concatenated as part of the build process, but it
doesn't
>seem like that's happening from within the .sln script--am I missing a
>pre-build step someplace?
When config.h.in is hit in the build of configure the configure project,
the configure.h file from the win32 directory is