-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Using GCC 3.3.6, I get the following warning:
choosing ... over ... because conversion sequence for the argument is better.
Now, I want to disable this warning as described in gcc warning options by providing an argument like
-Wno-theNameOfTheWarning
But I don't know the name of the warning…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a function declared as:
void event_add_card (EventAddr addr, EventType type, unsigned char card);
and union
typedef union EventData
{
float money; /**< money info */
unsigned char card; /**< new card */
}
EventData;
When i compile following code:
EventData…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
When using autotools (with a config.h file) for both a library and a software built on that library the compiler complains about a redefinition of some macros (PACKAGE_NAME, PACKAGE_TARNAME and so on).
How can I prevent this?
The config.h file is needed in the library to propagate it's setting to…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm getting a number of these warnings when compiling a few binaries:
warning: incompatible implicit declaration of built-in function ‘strcpy’
warning: incompatible implicit declaration of built-in function ‘strlen’
warning: incompatible implicit declaration of built-in function ‘exit’
To try…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello there. I have a set of code, which mimics a basic library cataloging system. There is a base class named items, in which the the general id,title and year variables are defined and 3 other derived classes (DVD,Book and CD).
Base [Items]
Derived [DVD,Book,CD].
The programs runs, however I…
>>> More