answersLogoWhite

0

You are probably trying to build a dynamic library. If so, do not use ld, use CC -g instead.

User Avatar

Wiki User

10y ago

What else can I help you with?

Continue Learning about Engineering

How do you solve undefined references error in c?

Linker errors are many and varied. Without knowing the error it is impossible to say how you solve it. Most linker errors relate to undefined symbols. For instance, if you declare a function but do not implement it, the function is undefined. This can also happen when you include a function library header but do not link to the function library containing the definitions. The compiler uses the header declarations to ensure all calls to the functions are valid even if the definition hasn't yet been compiled. It is the linker's job to ensure all declarations are defined. The only exception is templates which must be defined before they are used. This is why all template definitions are placed in the header alongside the declarations.


How do you implement c program for conditional compilation?

Conditional compilation is achieve through preprocessor directives. First, define the preprocessor symbols upon which conditional compilation depends, then test them using #if and #else preprocessor directives. A #endif directive indicates the end of the nearest enclosing conditional block, thus conditional blocks may be nested. The following example demonstrates how we can conditionally define debug or production code based upon the absence or existence of the NDEBUG symbol: #ifdef NDEBUG /* all C code within this block is compiled when NDEBUG is defined (production code) */ #else /* all C code within this block is compiled when NDEBUG is not defined (debug code) */ #endif Note that the NDEBUG symbol is typically defined via the command line, however symbols can also be defined or undefined via the source using the #define and #undefine directives. For instance, header files typically require guards to protect against being included more than once in a compilation and preprocessor directives provide the conventional means of ensuring that is the case: // myheader.h #ifndef _MYHEADER_H_ #define _MYHEADER_H_ // all header code goes here... #endif By convention, preprocessing symbols (macros) are defined with all uppercase and are intentionally ugly to avoid any confusion with C identifiers. Header guards must be unique to each header thus they are typically based upon the header file name itself.


How do you use symbols and conventions to appropriate BS and ISO standard?

To appropriately use symbols and conventions from BS (British Standards) and ISO (International Organization for Standardization) standards, it is essential to ensure that all relevant symbols are correctly represented according to the specific guidelines provided in the standards. This includes adhering to the defined graphical representations, terminology, and measurement units. Additionally, it's important to integrate these symbols consistently within documentation and designs to maintain clarity and compliance. Regularly consulting the latest versions of the standards helps ensure accuracy and relevance.


What are visual symbols?

Visual symbols are symbols that you see everyday in day life and you recognize and know its meaning right away.


What are the valve symbols used in piping?

Commonly used P&ID symbols (Piping and Instrumentation Diagram symbols) for manual valves.

Related Questions

How do you solve undefined references error in c?

Linker errors are many and varied. Without knowing the error it is impossible to say how you solve it. Most linker errors relate to undefined symbols. For instance, if you declare a function but do not implement it, the function is undefined. This can also happen when you include a function library header but do not link to the function library containing the definitions. The compiler uses the header declarations to ensure all calls to the functions are valid even if the definition hasn't yet been compiled. It is the linker's job to ensure all declarations are defined. The only exception is templates which must be defined before they are used. This is why all template definitions are placed in the header alongside the declarations.


Who is performed resolution of externally defined symbols?

Linker


What are the Meanings of symbols in still life paintings?

There are hundreds of different symbols that artists have used. Ask at your local library for a dictionary of symbols!


What is a system of symbols and rituals?

A system of symbols and rituals can be defined as a religion. Different symbols and rituals are used in the various religions that are found in the world.


Where are symbols stored in flash?

Symbols in Adobe Flash are stored within the project library, which is a centralized repository for all the assets used in the project. When symbols are created, they are organized and stored within this library for easy access and reuse throughout the project.


Where can one find information on symbols and meanings?

Depending on what kind of symbols and meanings one is looking for, the local library usually has lots of books with information. The internet is always an option, as well if you do not have a public library in your area.


How do i simplify and identify any x-values for which the expression is undefined -2x 2-9x 4x 2-81?

Unfortunately, limitations of the browser used by Answers.com means that we cannot see most symbols. It is therefore impossible to give a proper answer to your question. Please resubmit your question spelling out the symbols as "plus", "minus", "times", "equals", "squared", "cubed". There appear to be several expressions: -2x, 2-9x, 4x and 2-81 all of which are defined.


Where can a person go to get information on LaTeX Symbols?

To get more information on LaTeX symbols, one can go the library to do further research on them or enrol in a university course, where they not only teach you about the symbols, but test you as well.


Semiotics can be defined as?

Semiotics is the study of signs and symbols, their meanings, and how they are used to communicate. It explores how signs and symbols are used in different cultures and contexts to convey messages and create meaning.


What is 3x 2y 8?

It is a set of three expressions , two variable and one constant. There are no operations defined for them, not any symbols of equality or inequality.


What is the part of the map called that tells you what the symbols mean?

Legend , see related link and 3c defined .


Why must symbols appearing in length and repetition factors of the DC pseudo-op be self defining or previously defined symbols?

they are used to reserve bytes at the time the code is assembled.