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
0
votes
2 answers

Where is runtime library crti.o on solaris 7?

I know there exist crti.o crt1.o crtn.o in /usr/lib on Solaris 10. But these files are absent on Solaris 7.
programmer
  • 41
  • 2
0
votes
1 answer

Using the CRT unit in PASCAL is causing problems

I want to use the CRT unit in some Pascal code, just for the "clrscr" function but it's causing issues. The code compiles fine, but then some text is out of place and symbols appear where they shouldn't. Here is the code: program fuel(input,…
Liam
  • 93
  • 2
  • 13
0
votes
1 answer

Help Deadlock analysis

The Deadlock occurs in my application when initialization of local static variable happens in the function called from DLLMain Entry point with param DLL_THREAD_DETACH. Below is Windbg analysis This is usually caused by another thread holding the…
IRFAN
  • 39
  • 5
0
votes
1 answer

Moving stack and reserving half of addressable space in Linux

For the implementation of a memory monitoring library, I would like to move the stack of the monitored program, and reserve the upper half of the virtual memory for use in the monitoring library, following the "half'n'half"-model describe used by…
arvidj
  • 775
  • 5
  • 25
0
votes
1 answer

What would cause linker not to insert epilog in .init section?

Using gcc arm-none-eabi 4_8 compiler, I'm getting a problem with my binary after linking. No errors but when I bring it up in debugger I never reach main. Tracing it through it appears the linker is not adding the epilog to the .init section for…
0
votes
1 answer

vs2008 failed to capture exceptions with SetUnhandledExceptionFilter

I'm writing a CrashReport.dll that can be used by any exe, as long as the exe load it, it captures all exceptions, prompt user to report, restart the application, etc. I'm using the SetUnhandledExceptionFilter, but it's not working. Seems that the…
aj3423
  • 2,003
  • 3
  • 32
  • 70
0
votes
1 answer

StaticCRT(LIBCMT(D)) and DynamicCRT(MSVCRT(D)) conflict

I am developing a project which uses third party dlls and libraries. I want to build my project using static CRT (LIBCMTD) as I wish to run my application in "IBM purifier". However, the third party libraries are built using dynamic CRT(MSVCRT).…
mots_g
  • 637
  • 8
  • 27
0
votes
1 answer

An odd linkage diffrence between Debug and Release resulting an unresolved _except_handler3, or Why, oh, why I don't know about libcmtd?

A windows application I've been working on, is due to delivred without the use of CRT. There's a few good articles descirbing the guidlines and benefits of doing so (none of which I could find upon writing this question - sorry) . Other then not…
0
votes
1 answer

CRT Initialization: runtime error - CRT not initialized

today I have been trying to get standard functions to work in my application such as sprintf, ect. When ever using functions like sprintf, fgets or anything else standard my application crashes with runtime error - CRT not initialized Current linker…
Konroi
  • 5
  • 6
0
votes
2 answers

enabling MASM32-built apps to support msvcrt.dll

I have a need of building console applications in assembly language. Since I'm too lazy to reinvent the square wheel of reading strings with the help of ReadConsoleA, converting them to integers (or otherwise parsing them) manually, outputting them…
alexdelphi
  • 69
  • 8
0
votes
1 answer

Side by Side error running Qt Creator

On Vista Ultimate (No SP), I installed Qt Creator 1.3 from Nokia, using the Windows Binary installer. When I tried running it, I got a side-by-side error saying: "The Application has failed to start because its side-by-side configuration is…
Neil
  • 3,100
  • 5
  • 29
  • 36
0
votes
3 answers

how to search a part of a string not all of it

in c++ how to search just a part of a string starting from startIndex and ending after some count of chars. in some cases I just need to search the first 5 chars for a special char or string why will I have to come over the whole string it may be…
ahmedsafan86
  • 1,776
  • 1
  • 26
  • 49
0
votes
3 answers

MSVCR and CRT Initialization

Out of curiosity, what exactly happens when an application compiled with the MSVCR is loaded, resp. how does the loader of Windows actually initialize the CRT? For what I have gathered so far, when the program as well as all the imported libraries…
PuerNoctis
  • 1,364
  • 1
  • 15
  • 34
0
votes
2 answers

bsearch() doesn't find my item

could anybody tell me why bsearch() in the following code does NOT find the item "getwidth" in the list? I tried several compilers and it works with none of them so it must be a bug in my code. However, I really don't see what's wrong there. The…
Andreas
  • 9,245
  • 9
  • 49
  • 97
0
votes
1 answer

What's a good way to resolve Runtime library conflicts?

I have a rather large c/c++ CGI project which references several external libraries (OpenSSL, FastCGI, Boost, etc). I verified that every single library is built with /MT like our main executable project. However, when including certain headers (for…
arao6
  • 3,316
  • 5
  • 30
  • 51