You need a main
function in date.c
. Or you could just compile with -c
to not link at this time and link the main function in later.
Related Posts:
- what is stack smashing (C)?
- How do I compile the asm generated by GCC?
- C Unknown type name ‘my_structure’
- Compiler gcc:error; no such file or directory
- Convert char to int in C and C++
- gcc makefile error: “No rule to make target …”
- gcc makefile error: “No rule to make target …”
- How does #include
work in C++? - How do I install gcc on cygwin?
- warning: incompatible implicit declaration of built-in function ‘xyz’
- libpthread.so.0: error adding symbols: DSO missing from command line
- fatal error: Python.h: No such file or directory
- Fatal error: iostream: No such file or directory in compiling C program using GCC
- conflicting types error when compiling c program using gcc
- What is a file with extension .a?
- gcc/g++: “No such file or directory”
- (.text+0x20): undefined reference to `main’ and undefined reference to function
- Interpreting valgrind error Invalid write of size 4
- difference between
and - Warning/error “function declaration isn’t a prototype”
- Error: initializer element is not computable at load time
- warning: initializer element is not computable at load time
- Debug vs Release in CMake
- Debug vs Release in CMake
- gcc error : undefined reference to `itoa’
- What is the difference between gcc/g++ and cc1/cc1plus?
- Removing trailing newline character from fgets() input
- gcc: undefined reference to
- How to repair warning: missing braces around initializer?
- Why do I get “cast from pointer to integer of different size” error?
- What happens during a “relocation has invalid symbol index” error?
- g++ output: file not recognized: File format not recognized
- What does this GCC error “… relocation truncated to fit…” mean?
- Undefined reference to main – collect2: ld returned 1 exit status
- error: unknown type name ‘bool’
- Where is the
header file on Linux? Why can’t I find ? - gcc -g :what will happen
- Make Error 127 when running trying to compile code
- File format not recognized; treating as linker script using GCC
- Using OpenMP with clang
- Gcc error: gcc: error trying to exec ‘cc1’: execvp: No such file or directory
- gcc 4.8 on MAC OS X 10.8 throws “Undefined symbols for architecture x86_64: “
- cc1.exe System Error – libwinpthread-1.dll missing – But it isn’t
- Fatal error: iostream: No such file or directory in compiling C program using GCC
- typedef fixed length array
- How to solve static declaration follows non-static declaration in GCC C code?
- Linker error: “linker input file unused because linking not done”, undefined reference to a function in that file
- GCC: Array type has incomplete element type
- I don’t understand -Wl,-rpath -Wl,
- How to compile C program on command line using MinGW?
- typedef struct vs struct definitions [duplicate]
- Floating point exception( core dump
- Enable OpenMP support in clang in Mac OS X (sierra & Mojave)
- Why am I getting “void value not ignored as it ought to be”?
- 1 = false and 0 = true?
- What is an unsigned char?
- char *array and char array[]
- What does #pragma once mean in C? [duplicate]
- Printing hexadecimal characters in C
- What is the difference between const int*, const int * const, and int const *?
- Connect: Socket operation on non-socket
- C library function to perform sort
- “Initializer element is not constant” in C
- How do you do exponentiation in C?
- Try catch statements in C
- How I can print to stderr in C?
- How do I create an array of strings in C?
- How to check if a string is a number?
- The difference between stdout and STDOUT_FILENO
- MinGW: “gcc is not recognized as an internal or external command”
- Convert Python program to C/C++ code?
- How do you pass a function as a parameter in C?
- Cygwin – Makefile-error: recipe for target `main.o’ failed
- Why am I getting “undefined reference to sqrt” error even though I include math.h header?
- Why am I getting “undefined reference to sqrt” error even though I include math.h header?
- warning: control reaches end of non-void function [-Wreturn-type]
- “Implicit instantiation of undefined template” when forward declaring template class
- “…redeclared as different kind of symbol”?
- OS X 10.9.2: checking whether the C compiler works… no
- Bind failed: Address already in use
- What does “Permission denied” “Id returned 1 exit status” mean?
- Memory Clobbering Error
- How to copy a char array in C?
- How to project a point onto a plane in 3D?
- hash function for string
- Why use pointers?
- What exactly is meant by “de-referencing a NULL pointer”?
- getc() vs fgetc() – What are the major differences?
- Error: “Access not within mapped region at address” (Valgrind)
- getline() vs. fgets(): Control memory allocation
- Library for the Basic Data Structures, such as Queue, in C
- How to run C program on Mac OS X using Terminal?
- Using sys/socket.h functions on windows
- Segmentation fault- strcat
- Difference between exec, execvp, execl, execv?
- How to format strings using printf() to get equal length in the output
- Make / gcc cryptic error 2: how to have more information?
- Example of waitpid() in use?
- Can a function return two values?
- How to print a int64_t type in C