This code consistently fails to build in ubuntu 12.04, 12.10, linux mint 13 and 14, but it compiles correctly on ubuntu maverick 10.10
#include <stdio.h>
#include <signal.h>
#include <stdio.h>
#include <signal.h>
#include <execinfo.h>
#include <stdlib.h>
#include <string.h>
//#define __USE_GNU
//#include <sys/ucontext.h>
#include <ucontext.h>
main.c:
#include <stdio.h>
#include "proto.h"
int main(void)
{
return(0);
} // end main
support.c:
#include "proto.h"
\\ only function defintions
proto.h:
#ifndef proto
#define proto
double PI = 3.14159;
int LOOP_LIMIT = 90;
#endif
makefile:
main: main.o support.o
gcc -lm -o main main.o support.o
main.o: main.c proto.h
gcc -c main.c
support.o: support.c proto.h
I have a header file with the declaration of several global variables in the following format:
constants.h
#ifndef CONSTANTS_H
#define CONSTANTS_H
extern unsigned var;
EXPORT_SYMBOL(var);
#endif
constants.c
#include "constants.h"
unsigned var = 10;
foo.c
#include "constants.h"
When I try to compile the kernel module, I get the following error for each respective exported symbol:
WARNI
hello all,I Installed arch linux and trying to get exim to work.
Well I am trying to make a simple compiler and linker for myself with a makefile, as I am just starting to learn C++, but I can't seem to find out why this makefile isn't working...
When I run the compile.sh, I get this error message: make: *** No target.
Hi all,
Error occurred while making the net-snmp-5.4.4 on Solaris 5.10 version.
Environment
- Solaris 5.10-x86
- Net-SNMP-5.4.4.tar.gz
- Path (/etc/profile)
Code:
PATH=/usr/local/bin:$PATH
export PATH
LD_LIBRARY_PATHUSR=/usr/ccs/bin:
export LD_LIBRARY_PATH
Error01 - summary
Code:
*** Error code 1
make: Fatal error: Command failed for target `libnetsnmp.la'
Current
Hello,
I was trying to install Lingua-EN-Fathom when I got the error:
Can't locate ExtUtils/MakeMaker.pm
Then I try to install ExtUtils-MakeMaker. The Makefile.PL works fine but when I do "make", I got the error:
I want to add a file hstest.c which comes with bluez package but not by default added to the makefile to the sources that are compiled with the buid system.
I read about makefiles and autotools but now I am hesitant to make changes to the makefiles. Should I modify the makefile.am and then run automake or just change the makefile.in or the makefile itself ? and how ?
If I have this structure
Code:
DirectoryA/DirectoryB
and both DirectoryA and DirectoryB have a Makefile. The DirectoryA Makefile 'depend' target simply calls the makedepend command from DirectoryB.