First off all , let me apologize for my inexperience. I am just starting use of Linux and gcc .
Actually I ve some .c files in the present directory , and now I am
giving
+vc <my_file1.c> <my.file2.c> <myfile3.c>.
All the c files are in present directory. Then my Vcs Tool automatically calls the gcc command for me ..
Like
Here the last line calls my c files in my present directory..
But I can edit the last line as so that it links my lib(.so file) or search the directory where all my c files resides..
+vc -gcc <anyoption of gcc compiler>
I am extreamly sorry to give some tool information for c file compilation to this forum
I Think it would support my explanation If I provide some VCS Tool information here..
Useful Compile-Time Options
VCS has other compile-time options that are not specially for DirectC
but you might find them useful when enabling and calling C/C++
functions in your Verilog source code.
-cc
Specifies the C compiler (default is cc in your search path)
-cpp
Specifies the C++ compiler (default is CC in your search path)
-ld
Specifies the linker for final linking to build simv (default is the
same as the C++ compiler)
Note:
Don't specify incompatible C++ compiler and linker (by specifying
-cpp and -ld simultaneously. That may result in compile failure
with unrecognized symbols.
These options may be necessary on the vcs command line. If you
include object files on the command line, you must include the options
to specify which compiler and linker generated these object files.