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.

331 questions
263
votes
2 answers

How to convert .crt to .pem

How can I convert .crt to .pem?
Ali
  • 9,900
  • 10
  • 53
  • 83
160
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,872
  • 2
  • 11
  • 17
133
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
  • 16,174
  • 9
  • 28
  • 27
38
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
  • 57,517
  • 89
  • 275
  • 484
35
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
  • 5,917
  • 8
  • 39
  • 68
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,068
  • 2
  • 12
  • 21
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
  • 1,986
  • 1
  • 19
  • 19
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,070
  • 3
  • 21
  • 38
23
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
  • 26,344
  • 42
  • 116
  • 201
22
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
  • 539
  • 2
  • 5
  • 14
22
votes
13 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…
19
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
  • 6,441
  • 10
  • 38
  • 77
17
votes
4 answers

How to use .key and .crt file in java that generated by openssl?

I need asymmetric encryption in java. I generate .key and .crt files with own password and .crt file by openssl that said in http://www.imacat.idv.tw/tech/sslcerts.html . How to use these .key and .crt file to extract publickey and private key in…
Sajad Bahmani
  • 16,531
  • 27
  • 81
  • 105
16
votes
19 answers

How to make a C++ EXE larger (artificially)

I want to make a dummy Win32 EXE file that is much larger than it should be. So by default a boiler plate Win32 EXE file is 80 KB. I want a 5 MB one for testing some other utilities. The first idea is to add a resource, but as it turns out embedded…
Phil
  • 221
  • 1
  • 3
  • 7
16
votes
5 answers

C++ - Memory leak testing with _CrtDumpMemoryLeaks() - Does not output line numbers

I'm working on a game with SDL in Visual Studio 2010. I came across the _CrtDumpMemoryLeaks() macro and thought I'd give it a go. Invoking _CrtDumpMemoryLeaks() does print memory leaks to the output window, but it does not show where it…
John
  • 2,551
  • 5
  • 30
  • 40
1
2 3
22 23