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?
- How big can a 64 bit unsigned integer be?
- The difference between n++ and ++n at the end of a while loop? (ANSI C)
- What is a segmentation fault?
- How many spaces for tab character(\t)?
- Implementing Taylor Series for sine and cosine in C
- Working on code to calculate cosine with factorial sum
- How to use execvp()
- How to use execvp() to execute a command
- How does strtok() split the string into tokens in C?
- warning: implicit declaration of function
- warning: implicit declaration of function
- What is *(uint32_t*)?
- What does (~0L) mean?
- pthread_join() and pthread_exit()
- What is size_t in C?
- What is the difference between float and double?
- what is Segmentation fault (core dumped)? [duplicate]
- What causes a segmentation fault (core dump) to occur in C?
- uint8_t vs unsigned char
- How to use symbols of extended ASCII table in C?
- Two questions about basic C programs
- What is the difference between ++i and i++?
- Using boolean values in C
- What does “collect2: error: ld returned 1 exit status” mean?
- How to convert an int to string in C?
- typedef struct vs struct definitions [duplicate]
- How to print in C
- What is the effect of extern “C” in C++?
- Why should we typedef a struct so often in C?
- Why are #ifndef and #define used in C++ header files?
- Arrow operator (->) usage in C
- strdup() – what does it do in C?
- strdup() – what does it do in C?
- What is a string of hexadecimal digits?
- Why should we typedef a struct so often in C?
- What exactly is the difference between “pass by reference” in C and in C++?
- What is the difference between ++i and i++?
- What can be the reasons of connection refused errors?
- What does “collect2: error: ld returned 1 exit status” mean?
- How to convert an int to string in C?
- typedef struct vs struct definitions [duplicate]
- What is newline character — ‘\n’
- When to use extern “C” in simple words? [duplicate]
- Floating point exception( core dump
- Why does ENOENT mean “No such file or directory”?
- What does the question mark character (‘?’) mean?
- Cannot figure out how to use getchar(); in C
- Floating point exception (core dumped)
- Undefined reference to pthread_create in Linux
- what is the difference between uint16_t and unsigned short int incase of 64 bit processor?
- Stack smashing detected
- Why am I getting “void value not ignored as it ought to be”?
- Correct format specifier for double in printf
- Compiler Error “void value not ignored as it ought to be” in C programming [duplicate]
- Stack smashing detected
- How do I determine the size of my array in C?
- Why am I getting “void value not ignored as it ought to be”?
- Mutex example / tutorial? [closed]
- Scanf/Printf double variable C
- Pointer Arithmetic
- dereferencing pointer to incomplete type
- 1 = false and 0 = true?
- c stack smashing detected
- What does “dereferencing” a pointer mean?
- Openssl : error “self signed certificate in certificate chain”
- How to convert a string to integer in C?
- What is the difference between C and embedded C?
- What is an unsigned char?