Questions tagged [crt]

For issues relating to utilizing the C runtime library.

crt
Filter by
Sorted by
Tagged with
2 votes
2 answers
3k views

Building a static lib without C/C++ runtime in Visual Studio

Is there a way to build a static library without specifying the version of C/C++ runtime? I'm using Visual Studio 2017 to build a static lib, and I have to specify a version for "Runtime Library" in ...
Nowibananatzki's user avatar
0 votes
0 answers
98 views

'localtime' api doesn't consider the local timezone, instead uses Pacific Time Zone

The documentation for localtime notes the following: localtime corrects for the local time zone if the user first sets the global environment variable TZ. When TZ is set, three other environment ...
Imran's user avatar
  • 415
1 vote
0 answers
416 views

Initialize C runtime by multiple threads?

I am using MinGW-w64 on Windows. I am trying to make sense what is happening inside the CRT startup functions. The program entry point is mainCRTStartup(). This function initializes buffer security ...
user2249675's user avatar
2 votes
0 answers
354 views

statically built boringssl depend on dynamic c runtime

I managed to build boringssl as dll built with /MT and /NODEFAULTLIB I added the c runtime library in input -> Additional libraries The toolset was used is LLVM-vs2014 the surprising thing is that I ...
dev65's user avatar
  • 1,480
0 votes
0 answers
34 views

PHP For loop with WordPress CTR Plugin

I am working on a site, I want the results to display alphabetically. A prevous developer has setup this code. if(!empty($post_data)){ echo '<div class="related-attorneys"> ...
Edward Novak's user avatar
1 vote
1 answer
538 views

TLS callback in which Calling sprintf_s leads to crash

Here is my code: #pragma comment (linker, "/INCLUDE:_tls_used") #pragma comment (linker, "/INCLUDE:p_tls_callback1") #pragma const_seg(push) #pragma const_seg(".CRT$XLAAA") EXTERN_C const ...
TanakaYasen's user avatar
2 votes
1 answer
2k views

_crtBreakAlloc in VS2017

I try to find out memory leaks using CRT. I'm using Visual Studio 2017 Community. I followed the official help, but its not working. I tried different inputs in Watch window. That's what I get: ...
Dmitrii Motorygin's user avatar
-1 votes
2 answers
457 views

Uses CRT how to negate anti scrolling?

I am currently using the CRT to allow for a delay to create a multitude of random numbers without having a bunch of numbers be the same (<- im terrible with grammar). so i used a writeln to see the ...
Mark Slayrin's user avatar
0 votes
1 answer
587 views

Windows 8.1 SDK doesn't find math.h

Due to problems with Windows 10 SDK in MSVC 2017 I'm trying the Windows 8.1 SDK, but I cannot compile anything, because there is no CRT - it doesn't find math.h (and probably others). What is ...
Vojtěch Melda Meluzín's user avatar
1 vote
0 answers
128 views

C equivalent for std::basic_string::find_last_not_of

I want to know if CRT offers a function similar to find_last_not_of() offered by STL. I searched but found equivalents of searching (for the first non-occurence) from the beginning of the string. but ...
Anurag S Sharma's user avatar
1 vote
2 answers
2k views

CRT not detecting memory leak in DLL

I developed an application which consists of main executable and dynamic library (dll). Both of them are developed by me and are build with same compiler (FYI: both are contained in same VS solution) ...
user avatar
1 vote
2 answers
485 views

Do i really need commented fclose() commands?

The following program was taken from Windows System Programming (Fourth Edition) by Johnson M. Hart: #include<stdio.h> #include<errno.h> #define BUF_SIZE 256 int main(int argc, char *...
strax's user avatar
  • 283
0 votes
1 answer
178 views

Locating crti on cross-platform basis

My problem is that I have a compiler which outputs LLVM bitcode/IR files (.ll/.bc) and these are compiled to object files using llc out.ll -t obj -o out.o. The problem is, is that to form an ...
Downgoat's user avatar
  • 14.1k
13 votes
2 answers
17k views

"getenv... function ... may be unsafe" - really?

I'm using MSVC to compile some C code which uses standard-library functions, such as getenv(), sprintf and others, with /W3 set for warnings. I'm told by MSVC that: 'getenv': This function or ...
einpoklum's user avatar
  • 124k
0 votes
1 answer
1k views

Building the Windows Universal C Runtime

I am trying to build the Universal C Runtime that comes with the Windows 10 SDK. I created a project and added source code from this directory: %ProgramFiles(x86)%\Windows Kits\10\Source\10.0.16299....
lolcat's user avatar
  • 645
8 votes
2 answers
2k views

How fix Error of error of crt1.o,crti.o in Build TinyCCompiler(TCC) from Source?

How fix Error of crt1.o,crti.o in Build TinyCCompiler(TCC) from Source? https://github.com/LuaDist/tcc i'm test this at my Desktop system(ubuntu) and also test on server(centos). at both OS , show ...
C-Compiler's user avatar
0 votes
2 answers
102 views

I want to make a https on nginx. How do I use the crt file?

I bought a EssentialSSL certificate on sslcertificate.com. Then I got these files. AddTrustExternalCARoot.crt COMODORSAAddTrustCA.crt COMODORSADomainValidationSecureServerCA.crt mp_abc_net.crt Dose ...
user3751111's user avatar
0 votes
0 answers
1k views

Calling a C main() function from an x86 32-bit assembly _start [duplicate]

I am trying to write a homework assignment which is to: write a simple Assembly program that all it does is call a C program, and send to it the command line arguments so that it may run ...
Nivolas's user avatar
  • 93
3 votes
1 answer
5k views

Static CRT link

im trying to build my project and I want to link the windows CRT statically, but I find some errors trying to linking it, I've included in the linking list these ones: libcmt.lib LIBCPMT.LIB libucrt....
Malium's user avatar
  • 79
1 vote
0 answers
848 views

Unreachable memory leaks

Some months ago, we managed to have very few memory leaks, in fact, only 3 : Memory leak n°368 was a singleton which was not deleted and now it has disappeared. But the other two were not accessible, ...
Sbizz's user avatar
  • 31
5 votes
1 answer
4k views

error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in LIBCMTD.lib(delete_scalar.obj)

I have written a c++ static library that overwrites the delete operator. When using the library in a test project, the project produces the following error: error LNK2005: "void __cdecl operator ...
Jester's user avatar
  • 51
0 votes
1 answer
393 views

Get my private key

I've just recieved a certificate from Commodo. The ZIP file contains a xxx.crt and xxx.pb7b I need to convert the xxx.pb7b file in to a xxx.pfx so that I can import it in IIS. I'm using OpenSSL for ...
ell's user avatar
  • 81
0 votes
1 answer
449 views

CRT WinAPI and variadic printf functions

I am currently studying WinAPI GUI (Programming Windows 5th edition by Charles Petzold) and C(not C++) .I am trying and want to keep it as pure C as possible and maybe then jump to C++ or C#. My ...
strax's user avatar
  • 283
1 vote
0 answers
102 views

Windows - Write data in stdin for scanf in current process

I'm creating a GTest project which needs to simulate input into scanf of the current process. I used GetStdHandle() in order to get handle to stdin of current process, but WriteFile seems to fail due ...
Taru's user avatar
  • 2,672
0 votes
1 answer
146 views

gcc symbol resolution shadowing

I'm trying to add some custom code to our internal libc related to atexit handling. In our libc we define this because we link to custom CRT files and don't use GCC's which defines this. void *...
David's user avatar
  • 3,402
1 vote
1 answer
5k views

The program can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing from your computer

When I open Xampp and give start in Apache, it is throwing the error: The program cant start because api-ms-win-crt-runtime-l1-1-0.dll is missing from your computer. Try reinstalling the program to ...
Maniraj Murugan's user avatar
4 votes
3 answers
4k views

CRT Doesn't print line number of memory leak

I've got the code below, which I think, based on Finding Memory Leaks Using the CRT Library, should print out the line number of a memory leak. #include "stdafx.h" #define _CRTDBG_MAP_ALLOC #include &...
Carbon's user avatar
  • 3,918
3 votes
2 answers
2k views

Install .cer certificates debian

I have to install a certificates on my server, but they only gave me a .cer file. I search on some forums, but I don't find anything to install it, just for .crt files... How could I install it ? ...
Nathan30's user avatar
  • 733
2 votes
1 answer
18k views

Fatal program exit requested (ucrtbase.dll)

I built an open-source software named OpenARK using OpenCV3.2.0, Visual Studio 2015, and PCL 1.8 on Windows 10 64 bit along with a PMD camera that uses PMD SDK. After the build is done completely with ...
Mona Jalal's user avatar
  • 36.5k
12 votes
3 answers
56k views

How to get RSA key from -----BEGIN CERTIFICATE----- from.crt and .pem file?

I'm having .crt and .pem file with -----BEGIN CERTIFICATE----- MIIFSDCCBDCg........................................ -----END CERTIFICATE----- and I want RSA key from this file. anyone is having ...
tushark's user avatar
  • 121
0 votes
2 answers
3k views

How to conver SSL .crt file into key.pem and cert.pem for nodejs HTTPS

i am having SSL .crt file and i want two file #1 key.pem and #2 cert.pem for node HTTPS. any one have any idea that how i can generate these files? thanks in advance.
tushark's user avatar
  • 121
0 votes
0 answers
856 views

api-ms-win-crt-runtime-l1-1-0.dll is missing when opening Adobe Muse cc 2017

Recently I am installed the Adobe Muse cc 2017. I am facing this .dll library missing error: This programme can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing. Try to reinstall .... ...
Meysam Ghahramani's user avatar
2 votes
1 answer
1k views

How to link Windows universal CRT to obj file compiled with nasm

Environment: Windows 10. I happen to be using a MinGW version of ld for linking, but I'm happy to use the visual studio link.exe if it makes things simpler. I have the following basic program in ...
Twicetimes's user avatar
3 votes
0 answers
540 views

How to use ftell and fseek in an UTF-8 encoded with Visual Studio?

I want to seek back to a known position in a file. Therefore I use ftell to save the position and later I use fseek to get back. I know about the restrictions, to seek to a specific position. But ...
xMRi's user avatar
  • 15.2k
0 votes
3 answers
1k views

How to manually initialise the c runtime in an exe?

I'm trying to provide my own entry point to a visual c++ executable using the linker switch "/entry". The associated Microsoft documentation goes into some detail about how to manually initialise the ...
tyotypic's user avatar
0 votes
1 answer
137 views

Possible drawbacks of overriding the entry point of a main program

So I was trying to set my own custom name for main in my C program, and I found this answer. You can specify an entry point to your program using the -e flag to ld. That means you can override ...
MD XF's user avatar
  • 8,041
0 votes
0 answers
124 views

I can not right click in Delphi7 IDE, because when i click , occur error message

I using Delphi 7. Until recently, it worked fine. But now, every time i do right click, I get an error that message is "Access violation at address 735f5e37 in module 'MSVCR90.dll'. Write of ...
InKwon Devik Kim's user avatar
2 votes
1 answer
3k views

Compiler issue after removing CRT (DLL)

After removing the CRT from my DLL I have gotten these weird errors. Here are they: LNK2001 unresolved external symbol "void __cdecl std::_Xbad_alloc(void)" (?_Xbad_alloc@std@@YAXXZ) ...
Jason Corick's user avatar
0 votes
0 answers
268 views

Link with custom function instead of crt one

I'm working on an application which defines it's own printf() to get around differences between the different CRTs out there or because some other platforms don't have it. When building the ...
stijn's user avatar
  • 35.3k
0 votes
3 answers
201 views

C++ | Windows - Passing STL objects to DLL

I have seen some very well questions but I decided I would ask my own because they weren't quite what I wanted to know. There was a lot of talk about how you shouldn't pass std::string into a ...
Trevin Corkery's user avatar
0 votes
1 answer
132 views

Getting Certificates from Java Keystore

I am using Java Keystore to generate domain.csr, domain.keystore and domain.cer. I need to secure the domain using SSL for which I need domain.crt and domain.key. How can I get these two? Is there any ...
saurg's user avatar
  • 327
20 votes
1 answer
7k views

Visual Studio 2015: Compile C/C++ without a runtime library

Is there a way of compiling C/C++ with Visual Studio 2015 without using any runtime library? I need to compile without a runtime library because I'm creating my own runtime library (for my OS). ...
SeeSoftware's user avatar
3 votes
3 answers
3k views

Does NtDll really export C runtime functions, and can I use these in my application?

I was looking at the NtDll export table on my Windows 10 computer, and I found that it exports standard C runtime functions, like memcpy, sprintf, strlen, etc. Does that mean that I can call them ...
Vlad's user avatar
  • 379
3 votes
1 answer
2k views

How to avoid C runtime (crt*.o) garbage

I have two C source files foo1.c: #include <stdlib.h> #include <stdio.h> int main(void) { puts("hello world"); return 0; } and foo2.c: #include <stdlib.h> #include <...
nebuch's user avatar
  • 6,765
1 vote
0 answers
66 views

Simulate different C Runtime for testing DLL-Interfaces

I'm currently working on a project that will be migrated to dynamic linking from static linking. As multiple shared libraries will act as plugins, our plan is to allocate data that is shared between ...
TOAOGG's user avatar
  • 392
4 votes
1 answer
968 views

C++/CLI Application Crashing On Start (_register_onexit_function)

Alright, I have a C++/CLI application that works just perfectly on debug mode, however when I change the build to release, the program crashes before it even reaches the main() function. I am using ...
Zer0Mem0ry's user avatar
0 votes
0 answers
1k views

What is the crt0.o error when cross compiling and how do I fix it? [duplicate]

The project I am working on at the minute must be compiled using a cross compiler. My binutils and gcc have been installed into ~/opt/cross, however when I try to compile, I am faced with this error: ...
user avatar
1 vote
1 answer
49 views

CRuntime mixing non-issue doesnt seem explainable and how to sensibly upgrade codebase

Apologies for my lack of understanding on this subject. I am a little uncertain about what I have read, and especially how it relates to our real-world source/scenario and how to move forwards with it....
user6340046's user avatar
0 votes
1 answer
39 views

Instaling SSL on apache2

I've obtained an SSL certificate from Comodo. I try to install it on an apache server using the following steps: Upload to the directory /home/perica these files: bedbids_com.crt bedbids_com.key ...
Andrew's user avatar
  • 2,168
0 votes
0 answers
103 views

Could this be related to Universal CRT refactoring?

I am in the process of upgrading my projects to VS 2015 and only in Debug|x64 configuration I am running into a couple of linker errors when my static library (XXXXX.lib) is being consumed by a DLL: ...
ForeverLearning's user avatar

1 2
3
4 5
8