Iam trying to execute a file that include many files but it seems my main copy.c can't read anyone of them
----------------------------------------------------------------------------------------- Copy.c
------------------------------------------------------------------------------------------------------------------------ tlpi_hdr.h
-------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------
and I have a lot of files also but the problem that when I compile copy.cit give output file but when i execute the file it give me
so I "cp" all files to "usr/local/include" but also nothing happens as you saw in previous image....
can anyone help me
These errors are nothing to do with #include files - your compiler is finding them just fine.
Your problem is that the compiler can't find where these functions are defined - it's seen a header file that promises to supply these functions, but they have not been delivered. Where are they defined? If it's another .c file, just include that on your command-line (cc -o copy copy.c other.c etc.c). If they're in a library, take the name of the library minus leading "lib" and minus extension and pass it to an -l (lower-case 'L') flag (e.g. for libabc.so, pass "-labc" in addition to other options.
This User Gave Thanks to JohnGraham For This Post:
We have a process where we store the database password in a config file like below from where the password is picked up and used in Database Scripts
ID, Password
But we now have a Audit Requirement not to have the passwords in Config Files directly. We have a command which could fetch the... (2 Replies)
I have a script in local server
cd /home/dell/work/BOP/testdir
./processchk po (here processchk is a script & po is passed as an argument)
Now I want to execute this script from remote server
ssh $username@$hostname "cd /home/dell/work/BOP/testdir; ./processchk po"
But Its getting error... (9 Replies)
1)In a particualr path i have a set of inputfiles like
path:/defaultmis/MonthlyLoads/INFA_EXPORT_022013/map*
example:
1)map_de
2)map_cod
3)map_feg
........and so on
in above path there wil be nearly 15 to 20 files starting with map and in other path i have another file input file... (4 Replies)
Hi
Hope someone can sched some light i'm trying to execute a script via sudo but i don't want to be prompted for a password when i run the script using sudo
my sudo entry does work in that the script gets executed but i'm having to give a password, my current entry is given below
user1 ... (0 Replies)
I want a script that will add comments to a file before check-in files. comments depend on type of files.
i have a script to list files in the directory that will be checked-in
There are xml, js, html, vm files. vm will use comments like c/c++ ( // or /*..*/)
can you help me add a comment line... (0 Replies)
I've written the script below to merge only .txt files that exist in one directory into one huge .txt file and ignore other files with other extensions.
now the result is one huge .txt file with all the contents of other .txt files
how can i add a File Name as a comment before each file?
... (12 Replies)
Hi All,
In make file i want to include header files from my local directory and if it did not find in local directory i want to include from network directory. can any help me how i can do this?.
here is the code
INCLUDE=${include}/
this is point to network dir how i can add option that it... (1 Reply)
hi guys,
i have a query, i wrote a perl script that will collect cpu statistics
Scripts/myScripts/
cpu.pl
i want to make this file so that i can run it from any location on any drive,
without giving the path explicitly.
like
$/home/ravi/perl
cpu.pl
i tried this... (8 Replies)
Hi guys i have written a script which takes the options given to him and execute itself accordingly.
for example
if a script name is doctortux then executing doctortux without option should made doctortux to be executed in automatic mode i.e. doctortux -a
or if a doctortux is needed to run in... (4 Replies)