05-16-2002
This works for me on 11.00, you may have to modify slightly for 10.20.
gcc -o xev xev.c -DSVR4 -DSYSV -DFUNCPROTO=15 -L/usr/lib/X11R6 -lX11
BTW, you should not use the bundled compiler (cc) for general development. It is a crippled compiler which is only included so that you may rebuild your kernel if necessary. Use the ansi compiler or (preferably) gcc.
10 More Discussions You Might Find Interesting
1. Programming
typedef struct {
struct timeval t1;
struct timeval time;
} timer_t;
cc: "timer.h", line 9: error 1584: Inconsistent type declaration: "timer_t".
It compiles fine with gcc...:confused:
Thanks for the help. (3 Replies)
Discussion started by: clockworks
3 Replies
2. UNIX for Dummies Questions & Answers
Hi there,
I want to compile a program and dump errors to a text file. How could I do so..?
Thanks for reading and thanks in advance!!! (6 Replies)
Discussion started by: starstarting
6 Replies
3. AIX
I recently compile some code in 32 bit mode on a AIX 5.3 server that has its kernal set to 64 bit mode. The compile was successful and the code works great. That being the case I use the model of the successful makefile on some other code but ended up getting errors that looked like this......
... (2 Replies)
Discussion started by: morrisey
2 Replies
4. Programming
I am trying to compile the pro*C file but gives errors. It says it encountered "std" while it was expecting ; , = ( $ $ORACLE_HOME/bin/proc tradewind/dataaccess/Blob.pcc
Pro*C/C++: Release 10.2.0.3.0 - Production on Fri May 9 11:10:54 2008
Copyright (c) 1982, 2005, Oracle. All rights... (0 Replies)
Discussion started by: shafi2all
0 Replies
5. Solaris
have installed and am using the GNU based tools from the Sunfreeware site to compile PHP. I already have Apache, MySQL, and Oracle compiled and working properly. Below is my configure string for my PHP build:
./configure --prefix=/usr/local/php5 \... (2 Replies)
Discussion started by: sunsysadm2003
2 Replies
6. Solaris
I'm trying to compile tacacs+-F4.0.4.18 on Solaris 10 (sparc based server). It fails during the "./configure" phase with the following error:
checking whether to use libwrap... yes
configure: error: Could not find libwrap. You must first install tcp_wrappers.
I do a have tcpwrappers... (4 Replies)
Discussion started by: pingmeback
4 Replies
7. Programming
Hi All,
My test code ldap_test.c can be compiled successfully with gcc2.95.2. But not gcc 4.1.2 in redhat5.5. The command I used and the output are:
#gcc -fPIC -shared -o lib_ldap_rhel.so ldap_test.c
/usr/include/ldap.h:179: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âtypedefâ... (2 Replies)
Discussion started by: rluo
2 Replies
8. UNIX Desktop Questions & Answers
Hi:
I am trying to remap Caps_lock to something else but just encountered an unexpected issue: the xwindows can't even detect Caps_lock. I tried with xev, there was no events shown when Caps_lock key was toggled.
the key itself still works though, meaning it does toggle the... (2 Replies)
Discussion started by: phil518
2 Replies
9. HP-UX
asprintf.c: In function 'vasprintf':
asprintf.c:58: error: 'SIZE_MAX' undeclared (first use in this function)
asprintf.c:58: error: (Each undeclared identifier is reported only once
asprintf.c:58: error: for each function it appears in.)
Someone know how to fix?
Thanks (2 Replies)
Discussion started by: Linusolaradm1
2 Replies
10. HP-UX
The sendmail on hp site is too old,and still support the bugged ssl3(poodle) even if enable tlsv1.
So i decide to compile sendmail by myself
i use this site.config.m4
define(`confCClibsmi', `gcc -fPIC')
define(`confCC',`/usr/local/bin/gcc -fPIC')
define(`confOPTIMIZE', ` -O3')... (0 Replies)
Discussion started by: Linusolaradm1
0 Replies
LEARN ABOUT FREEBSD
mkdep
MKDEP(1) BSD General Commands Manual MKDEP(1)
NAME
mkdep -- construct Makefile dependency list
SYNOPSIS
mkdep [-ap] [-f file] [flags] file ...
DESCRIPTION
The mkdep utility takes a set of flags for the C compiler and a list of C source files as arguments and constructs a set of include file
dependencies which are written into the file ``.depend''. An example of its use in a Makefile might be:
CFLAGS= -O -I../include
SRCS= file1.c file2.c
depend:
mkdep ${CFLAGS} ${SRCS}
where the macro SRCS is the list of C source files and the macro CFLAGS is the list of flags for the C compiler.
The user has the ability to change the preprocessor and preprocessor options used. For instance, to use gcc as the preprocessor and to
ignore system headers, one would use
depend:
env MKDEP_CPP="gcc -E" MKDEP_CPP_OPTS=-MM mkdep
${CFLAGS} ${SRCS}
The options are as follows:
-a Append to the output file, so that multiple mkdep's may be run from a single Makefile.
-f Write the include file dependencies to file, instead of the default ``.depend''.
-p Cause mkdep to produce dependencies of the form:
program: program.c
so that subsequent makes will produce program directly from its C module rather than using an intermediate .o module. This is useful
for programs whose source is contained in a single module.
ENVIRONMENT
CC Specifies the C compiler to use. The specified compiler is expected to have options consistent with the GNU C compiler.
MKDEP_CPP Specifies the preprocessor to use. The default is "${CC} -E".
MKDEP_CPP_OPTS Specifies the non-CFLAGS options for the preprocessor. The default is "-M".
FILES
.depend File containing list of dependencies.
SEE ALSO
cc(1), cpp(1), make(1)
HISTORY
The mkdep command appeared in 4.3BSD-Tahoe.
BSD
June 6, 1993 BSD