The errors that you’re getting are linker errors, telling you that while linking your program the linker can’t find a function named ‘CreateSet’ (etc.). It’s not immediately obvious why that should be the case, because it appears that you’re including “set.o” in the build command.
To troubleshoot build problems, it’s often useful to figure out what make is trying to do, and then run the commands individually one at a time so you can see where things go wrong. “make -n” will show you what commands “make” would run, without actually doing them. I would expect to see a command like:
gcc -o proj1 main.o set.o
try running that by hand and see where it gets you
Related Posts:
- C Makefile – missing seperator. stop
- makefile:4: *** missing separator. Stop
- Error in make command makefile:18: *** missing separator. Stop [duplicate]
- what is the difference between ‘make after make clean’ and just ‘make’?
- What are the differences between make clean, make clobber, make distclean, make mrproper and make realclean?
- make *** no targets specified and no makefile found. stop
- How to install and use “make” in Windows?
- How to install “make” in ubuntu?
- Difference between using Makefile and CMake to compile the code
- How to use LDFLAGS in makefile
- How to print out a variable in makefile
- how to “execute” make file
- How do I force make/GCC to show me the commands?
- How does “make” app know default target to build if no target is specified?
- Cygwin – Makefile-error: recipe for target `main.o’ failed
- Makefile:2: *** missing separator. Stop
- Make error: missing separator
- make: Nothing to be done for `all’
- (.text+0x20): undefined reference to `main’ and undefined reference to function
- What is the difference between “make” and “make all”?
- How to compile makefile using MinGW?
- Makefile:1: *** missing separator. Stop
- gcc error: wrong ELF class: ELFCLASS64
- makefiles CFLAGS
- configure: error: cannot run C compiled programs
- What’s the opposite of ‘make install’, i.e. how do you uninstall a library in Linux?
- What is the job of autogen.sh when building a c++ package on Linux
- Passing additional variables from command line to make
- Linker error: “linker input file unused because linking not done”, undefined reference to a function in that file
- Makefile on Cygwin
- “Nothing to be done for makefile” message
- What does “all” stand for in a makefile?
- The difference between n++ and ++n at the end of a while loop? (ANSI C)
- How many spaces for tab character(\t)?
- Working on code to calculate cosine with factorial sum
- What exactly is the difference between “pass by reference” in C and in C++?
- What does “collect2: error: ld returned 1 exit status” mean?
- Floating point exception (core dumped)
- Correct format specifier for double in printf
- Compiler Error “void value not ignored as it ought to be” in C programming [duplicate]
- Scanf/Printf double variable C
- How to convert a string to integer in C?
- What is the behavior of integer division?
- How to make a SIMPLE C++ Makefile
- max value of integer
- Convert an int to ASCII character
- Error “initializer element is not constant” when trying to initialize variable with const
- Cannot assign requested address – possible causes?
- need help understanding the movzbl call in this function
- How to extract C source code from .so file?
- What is the difference between read and pread in unix?
- What does “control reaches end of non-void function” mean?
- connect Error: “No route to host”
- C error: undefined reference to function, but it IS defined
- How to printf “unsigned long” in C?
- Why do I get an assertion failure?
- Difference between int32, int, int32_t, int8 and int8_t
- lvalue required as left operand of assignment
- how to convert negative hexadecimal to decimal
- Why am I getting “undefined reference to sqrt” error even though I inclu de math.h header?
- expression must have integral type
- Why is %c used in C?
- What is Innermost loop in imperfectly nested loops?
- What’s wrong with my code? What is argv[1]?
- What can cause a “Resource temporarily unavailable” on sock send() command
- How to get the current directory in a C program?
- What’s the best way to check if a file exists in C?
- How to solve error: expected identifier or ‘(‘
- I’m getting “Invalid Initializer”, what am I doing wrong?
- Warning/error “function declaration isn’t a prototype”
- Error: initializer element is not computable at load time
- %i or %d to print integer in C using printf()?
- How can I get the list of files in a directory using C or C++?
- How to prevent multiple definitions in C?
- How can you print multiple variables inside a string using printf?
- Multi-character constant warnings
- warning: passing argument ’from incompatible pointer type [enabled by default]’
- Return a `struct` from a function in C
- How to convert const char* to char* in C?
- Scanning Multiple inputs from one line using scanf
- C subscripted value is neither array nor pointer nor vector when assigning an array element value
- error: too few arguments to function `printDay’ (C language)
- Implementing a HashMap in C
- How to parse in C
- Optional arguments in C function
- Which of sprintf/snprintf is more secure?
- Where is the
header file on Linux? Why can’t I find ? - Why is the sizeof(int) == sizeof(long)?
- Passing string to a function in C – with or without pointers?
- Using ‘printf’ on a variable in C [closed]
- “warning: useless storage class specifier in empty declaration” in struct
- error : storage class specified for parameter
- Dereference void pointer
- Use of flag in c?
- How to get a shell environment variable in a makefile?
- Reading float using scanf in c
- “-bash: gcc: command not found” using cygwin when compiling c?
- What do \t and \b do?
- write() to stdout and printf output not interleaved?
- How to use random() in C [duplicate]