Sponsored Content
Full Discussion: why the code cant work?
Top Forums Programming why the code cant work? Post 41564 by kowrip on Wednesday 8th of October 2003 09:59:34 AM
Old 10-08-2003
Quote:
Originally posted by Namely
I tried g++ and it works.
It seems that my gcc have brokenSmilie

Thanks you allSmilie
What is the name of your file ? The undefined symbol looks like a name mangled C++ symbol. g++ is really just gcc which is invoked with some flags to tell gcc to compile using C++. However, gcc will also use the file name to decide whether or not to compile as C++ (.C or .cc --> C++). So, your file may have been getting compiled as C++ but trying to link with the non-C++ standard library.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

can't get this code to work

Ok I have just started using UNIX and am trying to write a script that will ping a list that I have created in a file called ipaddesses I need to get it to find the ip address that is not in use and do nothing however if it finds that all ip addresses have been taken to send me an e-mail! the... (13 Replies)
Discussion started by: jono
13 Replies

2. UNIX for Dummies Questions & Answers

Script doesn't work, but commands inside work

Howdie everyone... I have a shell script RemoveFiles.sh Inside this file, it only has two commands as below: rm -f ../../reportToday/temp/* rm -f ../../report/* My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
Discussion started by: cheongww
2 Replies

3. IP Networking

NIC will not work, but it did work.

I have a client machine that was built and loaded with SCO UNIX 2.1.3, (yes it is old). The machine worked fine on the closed network that I tested on in my shop. I then had to change it to the network that it would be connected to. Below is the host file, router and subnet mask file that I usually... (0 Replies)
Discussion started by: NC user
0 Replies

4. UNIX for Dummies Questions & Answers

why my code does not work?

Hi there can anyone help me why my code is saying Badly placed ()'s. #!/bin/csh if ($#argv != 1) then echo "One file is required" exit 1 else set lines=(`grep '404' $1 | cut -d" " -f5`) foreach line ($lines) printf ("Abnormal sites: %s\n", $line) endif thanks in advance! :) (7 Replies)
Discussion started by: FUTURE_EINSTEIN
7 Replies

5. Shell Programming and Scripting

My script work on Linux but not work in sunos.

My script work on Linux but not work in sun os. my script. logFiles="sentLog1.log sentLog2.log" intial_time="0 0" logLocation="/usr/local/tomcat/logs/" sleepTime=600 failMessage=":: $(tput bold)Log not update$(tput rmso) = " successMessage="OK" arr=($logFiles)... (7 Replies)
Discussion started by: ooilinlove
7 Replies

6. Programming

Breakpoints dont work in Codeblocks, code does not build

Hey so I've written a program and it crashes every time I run it. I tried placing breakpoints to see what was going but to my surprise they do not work! I've placed them anywhere and they do not stop the execution of the program. In fact if I add code and hit rebuild it doesn't even build that... (1 Reply)
Discussion started by: Cambria
1 Replies

7. Shell Programming and Scripting

My code worked on a Mac, now it does not work in another computer

I guess Mac has default bash. Then I copy my code to another comp and run it...And it gives me an error like "bad substitution".... How I can change my code??? Never had before this kind of situation. Help please. if then n=$(sort /Users/Natalie/lastserial | tail -1) ... (6 Replies)
Discussion started by: Natalie
6 Replies

8. IP Networking

Discussion at work, would a router work pluging a cable in wan1 and lan1?

hi all. and sorry for the random question, but this sparkled a raging flame-war at work and i want more points of view situation a router, with linux of some sort, dhcp client requesting for ip in wan1 (as usual with wan ports) dhcp server listening in lan1, and assigning ip (as usual... (9 Replies)
Discussion started by: broli
9 Replies
LIGCC(1)							 Listaller Project							  LIGCC(1)

NAME
ligcc - Wrapper around gcc to create more portable apps SYNOPSIS
ligcc [OPTION ...] DESCRIPTION
This manual page documents briefly the ligcc command. ligcc is a wrapper around gcc. It allows you to create more portable executables by doing three things: o Forces the linker to link against older glibc symbols. Users who are using an older version of glibc will no longer get "undefined symbol GLIBC_2.4 in /lib/libc.so"-style error messages. o Allows you to easily statically link to any other library. o Automatically removes bogus dependancies. For example, your program uses libfoo. libfoo uses libpng internally, but your app does not. Yet the pkg-config file for libfoo specifies "-lfoo -lpng" is linker parameters. And tadaa - you now have a bogus dependancy on libpng! LiGCC automatically removes the -lpng for you if your app doesn't use libpng directly. o Add $ORIGIN/../lib to the binary's library search path. $ORIGIN is the directory in which the binary exists. This ensures that your binary can find library dependencies which are placed in the 'lib' folder under the same prefix. You might want to install custom libraries into /lib. If you set $APBUILD_PROJECTNAME, ligcc will also add $ORIGIN/../lib/$APBUILD_PROJECTNAME to the library search path. OPTIONS
See the manpage of gcc(1) for more information about possible options. There are also several environment variables available to modify ligcc's behavior check the documentation for more information. SEE ALSO
lig++ (1), gcc(1). Additional documentation can be found on http://listaller.tenstral.net. AUTHOR
This manual page was written by Matthias Klumpp matthias@tenstral.net. COPYRIGHT
Copyright (C) 2009-2012 Matthias Klumpp Listaller Project 20 April,2012 LIGCC(1)
All times are GMT -4. The time now is 03:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy