Sponsored Content
Top Forums Programming probs adding linker option in g++ Post 302236107 by JamesGoh on Sunday 14th of September 2008 09:36:45 PM
Old 09-14-2008
probs adding linker option in g++

Hi all

Im trying to compile a C++ program, however Im having issues trying to link a particular library to the compiling and linking statement.

Here is what Im doing

Code:
g++ mips4 -std=c++98 -g disk_reporter.cpp -o disk_reporter

If I do this alone, the linker complains that library file /usr/lib32/libm.so is not used to resolve symbols. Also, I have tried these options

Code:
g++ mips4 -std=c++98 -g disk_reporter.cpp -o disk_reporter -L/usr/lib32/libm.so 

g++ mips4 -std=c++98 -g disk_reporter.cpp -L/usr/lib32/libm.so  -o disk_reporter

but I didn't see anything different

Is there anything I could be doing wrong ? (Im using Irix 6.5 btw as my operating system)
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

oracle probs on HPUX11

Hi all we r using hpUX11.00 9000 sever as oracle 8i db server... But the problem is we have 4 instances of dbs but upto my knowledge there are only to ports available for TNS listen... how can i configure or get wht ever it may be the other two ports for tns listener......... ... (2 Replies)
Discussion started by: Prafulla
2 Replies

2. Shell Programming and Scripting

probs compiling lex

this is my lex file ------------ test.l %% printf("%c",yytext+'a'-'A');.ECHO; how do i compile it $ lex test.l cc lex.yy.c -o test -ll <------| | if this is correct do i add this line--------| @the command line or does it... (0 Replies)
Discussion started by: sinner
0 Replies

3. UNIX for Dummies Questions & Answers

copy probs

need help....just wanna copy all files with no extensions but with tree-informations to one dir first I make a new directory with all foldertrees...like find / -name "*" -type d >a1 sed -e 's/^/new/g' <a1 >b1 mkdir -p `cat a1` then I wanna copy all specific files with no... (12 Replies)
Discussion started by: svennie
12 Replies

4. Solaris

More SSH probs ...

Server 1 SSH Version Sun_SSH_1.0 Server 2 OpenSSH_3.8.1p1 Server 3 OpenSSH_3.8p1 I created the rsa keys on server1. Public and private. I copied the id_rsa.pub file to server2 and server3 and appended this to the authorized_keys file in the .ssh directory on both. (All servers using the root... (2 Replies)
Discussion started by: frustrated1
2 Replies

5. UNIX for Dummies Questions & Answers

hi probs with rm command

hi guys... i m using rm *.zip or rm -rf *.zip while removing from a server path recursively, i m getting "Remove directory operation failed." if i use rm* .zip i m getting as invalid command and none of the files are removed.. please help where m i wrong when i execute the... (13 Replies)
Discussion started by: madhu_aqua14
13 Replies

6. Shell Programming and Scripting

Adding an Option

I have a file that takes 2 or 3 arguments... ie: $argv(2), $argv(3) If I had to add another argument, I would be ok, but nooo.. that would be too easy for the new programmer. Before you go there - This is not a school problem, it's a real world problem.. If I wanted to add an option, for... (1 Reply)
Discussion started by: Brusimm
1 Replies

7. UNIX for Dummies Questions & Answers

probs executing crontab script

Hi everyone In an existing crontab script for the root user, I've added 5 new lines of code, however for some unknown reason, these lines of code were not executed. Here is what I did 30 0 * * * ./usr/people/atlab/jamesgoh/disk_reader/disk_reporter /picnic 30 0 * * *... (6 Replies)
Discussion started by: JamesGoh
6 Replies

8. HP-UX

Hp-ux linker option -c

Hi, The necessary symbols in a shared library can be exported to the application using linker option --version-script in Linux. The same can be done in Hp-ux using linker option +e. This can also be done by listing all the global symbols with +e in a file with linker option ld -c filename in... (0 Replies)
Discussion started by: roopa_v
0 Replies

9. Shell Programming and Scripting

[Solved] adding email option to KSH

Hi, I wanted to add a email option to this script. and was wondering if anyone could help me out. #!/bin/ksh echo "Finding hdisk" <DIR>/find-disk i=1 b=0 p=0 while ... (2 Replies)
Discussion started by: vpundit
2 Replies

10. Shell Programming and Scripting

Adding another option to getopt

I am trying to code for the addition of a new argument to the command line, the option D to a code that already has ABC (below). When I use make to compile it, it displays: invalid option --D. I did define the global d variable, as well as initialized it inside the main function of the C code. I... (9 Replies)
Discussion started by: Alabama
9 Replies
ORBIT2-CONFIG(1)					      General Commands Manual						  ORBIT2-CONFIG(1)

NAME
orbit2-config - helper script for building with ORBit2 SYNOPSIS
orbit2-config [ --libs ] [ --cflags ] [ --prefix=dir ] [ --exec-prefix=dir ] [ --use-service=service ] [ client | server ] orbit2-config [ --version ] [ --help ] DESCRIPTION
orbit2-config is a tool that is used to determine the compiler and linker flags that should be used to compile and link programs that use the orbit2 library. It is also used internally by the .m4 macros for GNU autoconf that are included with orbit2. The argument client is used for compiling an orbit2 client, and server for compiling an orbit2 server. In most cases, you will use one (or both) of the options --cflags or --libs (depending on whether you are compiling or linking. OPTIONS
orbit2-config accepts the following options: --version Print the currently installed version of library on the standard output. --help Print a usage summary. --cflags Print the compiler flags that are necessary to compile a program using the specified library. --libs Print the linker flags that are necessary to link with the specified library. --prefix=PREFIX If specified, use PREFIX instead of the installation prefix that library 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. --exec-prefix=PREFIX If specified, use PREFIX instead of the installation exec prefix that library was built with when computing the output for the --cflags and --libs options. This option must be specified before any --libs or --cflags options. --use-service=SERVICE If specified, provide additional flags (if any) for using the specified service. Known values for SERVICE are: module CosNaming, interfaces LNameComponent, LName. SEE ALSO
orbit-idl-2(1), /usr/share/doc/liborbit2-dev, http://orbit-resource.sourceforge.net, http://www.omg.org. AUTHOR
Copyright (C) 2001, 2002 Dick Porter <dick@acm.org> and Elliot Lee <sopwith@redhat.com> This manual was originally written for orbit2-config by Chris Waters <xtifr@debian.org> for Debian GNU/Linux. Version 2.3.100 18 December 2001 ORBIT2-CONFIG(1)
All times are GMT -4. The time now is 02:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy