Questions tagged [crt]

For issues relating to utilizing the C runtime library.

The C runtime library is a special program library used by a compiler, to implement functions built into the C programming language, during the execution (runtime) of a computer program.

Not to be confused with CRT terminals.

364 questions
317
votes
2 answers

How to convert .crt to .pem

How can I convert .crt to .pem?
Ali
  • 10,774
  • 10
  • 56
  • 83
162
votes
8 answers

api-ms-win-crt-runtime-l1-1-0.dll is missing when opening Microsoft Office file

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 this. When I try to open an Microsoft Office file. How do I solve that?
Ahmad Raza
  • 1,923
  • 2
  • 14
  • 19
152
votes
7 answers

Should I compile with /MD or /MT?

In Visual Studio, there's the compile flags /MD and /MT which let you choose which kind of C runtime library you want. I understand the difference in implementation, but I'm still not sure which one to use. What are the pros/cons? One advantage to…
andy
  • 18,005
  • 9
  • 30
  • 27
43
votes
1 answer

crt0.o and crt1.o -- What's the difference?

Recently I've been trying to debug some low-level work and I could not find the crt0.S for the compiler (avr-gcc) but I did find a crt1.S (and the same with the corresponding .o files). What is the difference between these two files? Is crt1…
Earlz
  • 62,085
  • 98
  • 303
  • 499
40
votes
20 answers

Docker pull error : x509: certificate has expired or is not yet valid

Description of problem: I'm trying to pull ubuntu from the public registry with this command : docker pull ubuntu And then i got this results (the previous command was working yesterday) : "Error while pulling image: Get…
38
votes
3 answers

How do I get the file HANDLE from the fopen FILE structure?

The fopen function returns a pointer to a FILE structure, which should be considered an opaque value, without dealing with its content or meaning. On Windows, the C runtime is a wrapper of the Windows API, and the fopen function relies on the…
lornova
  • 6,667
  • 9
  • 47
  • 74
27
votes
3 answers

C++ Statically linked shared library

I have a shared library used by a another application beyond my control which requires *.so objects. My library makes use of sqlite3 which needs to be statically linked with it (I absolutely need a self-contained binary). When I try to compile and…
Petr
  • 1,128
  • 2
  • 14
  • 23
25
votes
2 answers

JAVA: how to obtain keystore file for a certification (crt) file

HI All, I have a .crt file and I need to get the associated keystore file. How to do so? Is keytool is helpful in that? Thanks.
Muhammad Hewedy
  • 29,102
  • 44
  • 127
  • 219
24
votes
4 answers

Windows malloc replacement (e.g., tcmalloc) and dynamic crt linking

A C++ program that uses several DLLs and QT should be equipped with a malloc replacement (like tcmalloc) for performance problems that can be verified to be caused by Windows malloc. With linux, there is no problem, but with windows, there are…
Weidenrinde
  • 2,152
  • 1
  • 20
  • 21
24
votes
2 answers

How can fopen_s be more safe than fopen?

I'm working on legacy code for Windows platform. When I compile the code in VS2013, it give following warning: error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use…
ZijingWu
  • 3,350
  • 3
  • 25
  • 40
23
votes
4 answers

Should I link to the Visual Studio C runtime statically or dynamically?

I have read arguments on both sides about whether one should link to the C runtime library statically or dynamically in Visual Studio projects, and I'm still not entirely sure what to think. My project pulls in some third-party libraries (Python,…
user76293
  • 559
  • 2
  • 5
  • 14
22
votes
2 answers

What is security cookie in C++?

I have read from Google that it is used for controlling buffer overruns at application level and it is called by CRT. It also says that " Essentially, on entry to an overrun-protected function, the cookie is put on the stack, and on exit, the value…
Bhupesh Pant
  • 4,053
  • 5
  • 45
  • 70
20
votes
1 answer

Differences between msvcrt, ucrt and vcruntime libraries

Can someone please explain the difference between these? Internet lookup has confused me. I am using VS2019.
fonishormon
  • 351
  • 1
  • 2
  • 8
20
votes
1 answer

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). There are options on C/C++->Code Generation->Runtime…
SeeSoftware
  • 531
  • 6
  • 17
20
votes
5 answers

timegm cross platform

I'm using Visual Studio c++ Compiler ( 2010 ), but the library has different implementation of ANSI C and POSIX libraries function. What is the difference between ANSI C function and Windows CRT implementation? For example what is the difference…
Elvis Dukaj
  • 7,142
  • 12
  • 43
  • 85
1
2 3
24 25