07-31-2006
how to compile a program statically
how can i do static compilation in cc and -lldap
i have system defined and user defined header file.
Can any one suggest any site where from i can get some information about static and dynamic compilation.
Thankx
10 More Discussions You Might Find Interesting
1. Programming
how do i go about compiling a simple hello world script in mandrake linux? this is something i have had no luck in finding on the main site, please help?
thank you (2 Replies)
Discussion started by: CmpKillr
2 Replies
2. Programming
I need to load a dynamic library from a statically linked program. Is there a way without recompiling my program.
when i try to do that my program just crashes.
If not possible, how can I avoid crashing the program when i try to load the dynamic lib, again without recompiling.
If my... (1 Reply)
Discussion started by: disclaimer
1 Replies
3. Programming
Hi all,
Yeasterday I try to compile c program by using cygwin. I just find an errors the fist one is concerinig about the end of the line.
To summit my Assignment which is the day after tommorow I have to compile my c program by using just gcc.
If any one know what do I have to... (5 Replies)
Discussion started by: Bell
5 Replies
4. BSD
Hi ,
I have freeBSD installed. I need to compile a c program which has embedded informix sql statement in it.
Can you please help me to to do the same. I need to know what I should I do to make BSD compatable to compile the c program ?
Thanks in advance
Jisha (3 Replies)
Discussion started by: jisha
3 Replies
5. Programming
I am trying to compile a c program on AIX 5.3L 64-bit unix.
I have used this program in the past and it works.
Does anybody know what this error means?
/usr/local/bin> gcc get_epoch_secs.c get_epoch_secs
gcc: get_epoch_secs: No such file or directory
get_epoch_secs.c: In function... (8 Replies)
Discussion started by: djehresmann
8 Replies
6. Programming
hi,
I want to compile a program in C. It have a multiple calls to teradata. I have no idea how to compile in Aix.
The compiler that I should be use is cc.
I tried
cc -G -KPIC tdsfbd0358.c this generates a tdsfbd0358.i and after I have no Idea what I have to make, a link? how?... (3 Replies)
Discussion started by: kajum
3 Replies
7. UNIX for Advanced & Expert Users
Hi Guys,
I wonder I had have a look to the cc compile options but I could be missing one but basically I'm compliling a c program where I will storing a command to connect to a database and also userid and password. The issue is that after the module is generated using a command like strings I... (14 Replies)
Discussion started by: arizah
14 Replies
8. Programming
Hi,
I have a program which collects performance data from AIX. It works fine on older releases (< 5.3) but I fail to get data from /proc.
I would really appreciate it if someone could compile (using ANSI compat C compiler), run the program (for 30-40 minutes) on AIX 6.1 and send me the... (2 Replies)
Discussion started by: StuBob
2 Replies
9. Programming
Hi,
I having an issue while compiling a C program in USS (z/OS) machine.
I was able to create objest files (.o) from source (.c) files but when I try to create a binary file from the object files I am getting the below error.
$ cc util.o sock.o app.o -lnsl -o ptf
FSUM3067 The archive... (7 Replies)
Discussion started by: madhu84
7 Replies
10. UNIX for Advanced & Expert Users
What is the trick to get a java program to run and compile? I can't even get a basic skeleton to run and compile. What packages do I need? I figured the java-gcj and gcc-java packages was enough. Do I need any other packages?
I thought I had to do this and it would work but its not.
javac... (1 Reply)
Discussion started by: cokedude
1 Replies
LEARN ABOUT CENTOS
iodbc-config
iodbc-config(1) iODBC Driver Manager iodbc-config(1)
NAME
iodbc-config - script to get information about the installed version of iODBC
SYNOPSIS
iodbc-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--libs] [--static-libs] [--libtool-libs] [--odbcini] [--odbcin-
stini]
DESCRIPTION
iodbc-config is a tool that is used to configure to determine the compiler and linker flags that should be used to compile and link pro-
grams that use iODBC.
OPTIONS
iodbc-config accepts the following options:
--version
Print the currently installed version of iODBC on the standard output.
--cflags
Print the compiler flags that are necessary to compile an iODBC program.
--libs Print the linker flags that are necessary to link an iODBC program using dynamic libraries (if supported).
--static-libs
Print the linker flags that are necessary to link an iODBC program using static libraries.
--libtool-libs
Print the linker flags that are necessary to link an iODBC program in a libtool environment.
--odbcini
Print the path of the system wide odbc.ini file.
--odbcinstini
Print the path of the system wide odbcinst.ini file.
--prefix[=PREFIX]
If specified, use PREFIX instead of the installation prefix that iODBC was built with when computing the output for the --cflags
and --libs options. This option is also used for the exec prefix if --exec-prefix was not specified. This option must be specified
before any --libs or --cflags options.
If PREFIX is not specified, the --prefix flag shows where iODBC is currently installed.
--exec-prefix=PREFIX
If specified, use PREFIX instead of the installation exec prefix that iODBC was built with when computing the output for the
--cflags and --libs options. This option must be specified before any --libs or --cflags options.
EXAMPLES
To compile a program that calls the iODBC API, make sure the iodbc-config program can be found in the PATH environment variable, before
using the following Makefile fragment:
CFLAGS=`iodbc-config --cflags`
LDLIBS=`iodbc-config --libs`
iodbctest: iodbctest.c
cc $(CFLAGS) -o iodbctest iodbctest.c $(LDLIBS)
COPYRIGHT
Copyright (C) 1996-2009 by OpenLink Software
AUTHOR
iODBC Administrator <iodbc@openlinksw.com>
3.52.7 16 June 2004 iodbc-config(1)