Below are some basic steps
g++ -c my_lib.cpp => gives output as my_lib.o
gcc -c my_lib.c => gives output as my_lib.o
to link my_source.c with object my_lib.o file, below to be used.
gcc my_source.c my_lib.o
gcc
g++ -c my_lib.cpp => gives output as my_lib.o
gcc -c my_lib.c => gives output as my_lib.o
to link my_source.c with object my_lib.o file, below to be used.
gcc my_source.c my_lib.o
gcc
No comments:
Post a Comment