You can compile and link using compiler options. The library is referenced using -l<its_name_here> and the path to the library using -L/path/to/lib.
-I is for the path to include directories.
However, if the library isn't in a directory in the linkers path when you run the executable you'll get an error. One way to solve this is to use rpath option.
Note: I'm guessing what you need and what each item is. -I should be used with the path to header -l prepended to the library name and -L preceding the path to the library.
I have created symbolic links to several frequently used commands, for example:
"lt" is a link to "ls -ltrgo|tail". What can I do to make these links available system-wide, or at least in the directories my coworkers are in most of the time? I have copied the link to several directories, and... (6 Replies)
Hi, I have a task to search for a file called 'Xstartup' in the whole system because there might be different versions of it which overrite eachother.
Can anyone suggest a smart command to run this search ? The machine needs to scan every single folder beginning from root.
Please help, I am... (5 Replies)
Yea i was wondering how i would mount, and create a FAT directory that way i can save files in the FAT directory in a windows system and be able to access them on Linux systems. Or if there is any other way to share files between Linux and Windows. Any responds will help... thanks! (2 Replies)
Hello,
I am new to shell scripting and I was trying to write a script that would force a system wide password change except for admins. I am having some trouble and any help that someone could give me would be greatly appreciated. I am trying to do it by using the UID as the marker for anyone... (6 Replies)
Hi,
I need to look for a config file (ldap.conf) and pick the latest modified file.
`locate` tells me there are many ldap.conf's, some in /etc, /usr, /home, etc.
Is there some way I can sort them by last modified time via bash?
I was thinking maybe I could pipe the output of `locate` to `ls... (4 Replies)
I have installed user-mode linux kernel in Ubuntu 10.10 with the help of Synaptic package manager.
But I'm not getting how to run it.
If we install it manually, we've to run it using the executable binary file.
But here, I'm unable to locate any such file.
Please help....
Thanking You....
... (0 Replies)
When looking for wherever a program or a filename appears in the system, a short scrip is "findinner" which another script calls with a long parameter list consisting of path names ending with ".sh" or ".menu". "findinner" looks like this:
# If not .savenn file, show name and result of grep.
#... (4 Replies)
Discussion started by: wbport
4 Replies
LEARN ABOUT DEBIAN
xeno-config
XENO-CONFIG(1) Xenomai XENO-CONFIG(1)NAME
xeno-config - Display Xenomai libraries configuration
SYNOPSIS
xeno-config
xeno-config --v | --verbose
xeno-config --help
xeno-config [--version] [--cc] [--arch] [--prefix] [--xeno-cflags] [--xeno-ldflags] [--posix-cflags] [--posix-ldflags]
[--lib*-dir|--library-dir|--libdir|--user-libdir]
DESCRIPTION
xeno-config is a script that is used to to display the compiler and linker flags that are required for building applications that use Xeno-
mai. Any combination of options can be chosen (except --verbose and --help) to display configuration information, and options can be given
in any order. The command output one line for each option, in the same order as the options.
When xeno-config --verbose is executed, all configuration information is displayed in a different, more human-readable format.
When xeno-config is executed without any options, the output is equivalent to than when executing xeno-config --verbose then xeno-config
--help.
OPTIONS --v, --verbose
Outputs all configuration information, in a human-readable format.
--help Outputs the list of available command-line options.
--version
Outputs one line with the installed Xenomai version.
--cc Outputs one line with the path to the C compiler command that was used to compiled Xenomai.
--arch Outputs one line with the architecture to compile to, e.g. i386. May be different from the architecture of the currently running
system, if cross-compiling.
--prefix
Outputs one line with the absolute path to the base Xenomai installation directory.
--xeno-cflags
Outputs one line with the C compiler command-line options that are necessary to compile applications that use the Xenomai libraries.
--xeno-ldflags
Outputs one line with the C compiler command-line options that are necessary to link applications against the Xenomai libraries.
--posix-cflags
Outputs one line with the C compiler command-line options that are necessary to compile applications that use Xenomai's Posix-com-
patible layer library.
--posix-ldflags
Outputs one line with the C compiler command-line options that are necessary to link applications against Xenomai's Posix-compatible
layer library.
--lib*-dir, --library-dir, --libdir, --user-libdir
Outputs one line with the absolute path to Xenomai's libraries. In the --lib*-dir option name, the * is meant as a wildcard:
--lib-dir, --libfoo-dir and --libbar-dir are all valid and synonymous options.
ENVIRONMENT VARIABLES
DESTDIR
If the DESTDIR variable is set, its content is prepended to the Xenomai installed directories and files names output by the --prefix
and --library-dir options, and to the Xenomai installation directories in the flags output by the --xeno-cflags, --xeno-ldflags,
--posix-cflags, --posix-ldflags options.
If DESTDIR was set when compiling and installing Xenomai, e.g. for cross-compilation, DESTDIR must be set to the same value before
calling xeno-config, in order to output valid directory and file names.
RETURN CODES
0 Successful script execution.
1 The --posix-ldflags option has been given but Posix support is not available in Xenomai; or an invalid argument has been given on
the command-line.
2.6.0 2006-03-27 XENO-CONFIG(1)