It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I am getting two errors in code block which I am not able to remove. I think they are linking errors:
ld can't find -lc
ld can't find -lm
Ensure you have set correctly LD_LIBRARY_PATH for searching library path. The linker is looking for static library files libc.a and libm.a. They are standard c library and math library.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I need to print a call stack in log file in a running program (in C) as I need to check the flow,
I have to send traces to other environment and I can't debug, Is there any way to do it in C.
If the platform is linux (and I believe in OSX too), you could use backtrace and backtrace_symbols to achieve what you want.
As per the notes section of backtrace
The symbol names may be unavailable without the use of special linker
options. For systems using the GNU linker, it is necessary to use the
-rdynamic linker option. Note that names of "static" functions are not exposed, and won't be available in the backtrace.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to know how to parse a linux static librarie (.a) to get content of each files.
Thank's to help me !
In addition to objdump mentioned, you can use nm to list the content of a dot-a file, both what is defined inside (as well as which file.c defined them, when not stripped), as well as extern (which needs to be satisfied by other libraries).
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Can anyone tell me how to add a Windows string resource?
How to read it?
And, lastly, code for another C program to edit that resource.
thanx a lot in advance...hope you guyz don't laugh ..;)
Assuming that you are talking about Windows resources inside of executables, see this:
http://www.codeproject.com/KB/cpp/dynares.aspx
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Is there a way to convert a .c file that was created on a Mac to be compatible with VS2010? Or am I stuck having to re-type the code by hand?
Thanks!
You could try mac2dos.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
some one please tell me
how to change the default calling convention in c?
Calling conventions are not specified by the language. They are extensions to your compiler.
That said, commonly you do something like:
void __fastcall my_func(void);
But this is completely dependent on your compiler and platform.
This largely depends on your compiler, toolchain, and platform. You will need to be more specific on what your environment is, and what you wish to change to.