03-15-2011
While this does sound wierd I tend to believe that the program is at fault rather than the compiler. One thing that might help would be to compile it with a C++ compiler. I actually do this with most of my C programs. C++ is almost a superset of C and the few things I give up are things I don't miss. C++ often detects errors in my code that C has missed. Also, rather than trimming compiler options, try to reduce the program to the smallest possible amount of code that still has the bug.
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I'm trying to use the while statement to increment a positive number, with a leading "0". when I pass it through, it seems to come out with a negative value, and all the increments remain negative.
This is what I have:
i=010986294184
j=010986988888
while ; do
echo $i
i=(($i + 1))
done... (8 Replies)
Discussion started by: Khoomfire
8 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have prepared script which is taking more time to process. find below script and help me with fast optimized script:-
cat name.txt | while read line
do
name=$(echo $line| awk '{print $8}')
MatchRecord=$(grep $name abc.txt | grep -v grep )
echo "$line | $MatchRecord" | awk... (2 Replies)
Discussion started by: aju_kup
2 Replies
3. Programming
I'm trying to write a function which opens a file pointer and writes one of the function parameters into the file, however for some reason Im getting a core dump error.
The code is as below
void WriteToFile(char *file_name, char *data)
{
FILE *fptr;
/*disk_name_size is a... (10 Replies)
Discussion started by: JamesGoh
10 Replies
4. Shell Programming and Scripting
Hello,
Do you have any tips on how to optimize the AWK that gets the lines in the log between these XML tags?
se2|6|<ns1:accountInfoRequest xmlns:ns1="http://www.123.com/123/
se2|6|etc2">
.... <some other tags>
se2|6|</ns1:acc
se2|6|ountInfoRequest>
The AWK I'm using to get this... (2 Replies)
Discussion started by: majormark
2 Replies
5. Shell Programming and Scripting
I have a process using the following series of sed commands that works pretty well.
sed -e 1,1d $file |sed 1i\\"EHLO Broadridge.com" |sed 2i\\"MAIL FROM:${eaddr}"|sed 3i\\"RCPT TO:${eaddr}"|sed 4i\\"DATA"|sed 5s/.FROM/FROM:/|sed 6s/.TO/TO:/|sed 7,7d|sed s/.ENDDATA/./|sed s/.ENDARRAY// >temp/$file... (1 Reply)
Discussion started by: njaiswal
1 Replies
6. IP Networking
A server I host is having very rare glitches where a file the user downloads will have incorrect contents. This almost never happens when I am looking, I caught it once and only once -- a user messaged me saying his antivirus had given him a warning about an image file downloaded from his... (2 Replies)
Discussion started by: Corona688
2 Replies
7. Shell Programming and Scripting
I have a ksh script (dtksh Version M-12/28/93d on Solaris 10) that is run daily by cron and sometime hangs forever. I need to detect if there is an old copy hung before I start the new run, and if so send an email and exit the script. Here is part of the code:
#!/usr/dt/bin/dtksh... (4 Replies)
Discussion started by: 73rdUserID
4 Replies
8. UNIX for Advanced & Expert Users
Hi all.
I have a really really weird problem that I've been working on for days.
The problem manifested as users cannot connect to our web servers via SSH when they're using our wireless network. Here's where it gets weird:
- Clients from anywhere other than the wireless subnet can... (4 Replies)
Discussion started by: pileofrogs
4 Replies
9. Shell Programming and Scripting
Oracle Linux 5.6 64-bit (derivative of RHEL)
Dear Ann Landers,
This is about as bizarre as anything I've ever seen.
I have a little test script I've been working with. When I redirect stdout to a file, no file. Make a copy of the script to another name. Execute it and redirect stdout, and... (4 Replies)
Discussion started by: edstevens
4 Replies
LEARN ABOUT DEBIAN
condor_compile
condor_compile(1) General Commands Manual condor_compile(1)
Name
condor_compile create - a relinked executable for submission to the Standard Universe
Synopsis
condor_compile cc | CC | gcc | f77 | g++ | ld | make | ...
Description
Use condor_compile to relink a program with the Condor libraries for submission into Condor's Standard Universe. The Condor libraries pro-
vide the program with additional support, such as the capability to checkpoint, which is required in Condor's Standard Universe mode of
operation. condor_compile requires access to the source or object code of the program to be submitted; if source or object code for the
program is not available (i.e. only an executable binary, or if it is a shell script), then the program must submitted into Condor's
Vanilla Universe. See the reference page for condor_submitand/or consult the "Condor Users and Administrators Manual" for further informa-
tion.
To use condor_compile, simply enter "condor_compile" followed by whatever you would normally enter to compile or link your application. Any
resulting executables will have the Condor libraries linked in. For example:
condor_compile cc -O -o myprogram.condor file1.c file2.c ...
will produce a binary "myprogram.condor" which is relinked for Condor, capable of checkpoint/migration/remote-system-calls, and ready to
submit to the Standard Universe.
If the Condor administrator has opted to fully install condor_compile, then condor_compilecan be followed by practically any command or
program, including make or shell-script programs. For example, the following would all work:
condor_compile make
condor_compile make install
condor_compile f77 -O mysolver.f
condor_compile /bin/csh compile-me-shellscript
If the Condor administrator has opted to only do a partial install of condor_compile, the you are restricted to following condor_compile-
with one of these programs:
cc (the system C compiler)
c89 (POSIX compliant C compiler, on some systems)
CC (the system C++ compiler)
f77 (the system FORTRAN compiler)
gcc (the GNU C compiler)
g++ (the GNU C++ compiler)
g77 (the GNU FORTRAN compiler)
ld (the system linker)
NOTE: If you use explicitly call ``ld'' when you normally create your binary, simply use:
condor_compile ld <ld arguments and options>
instead.
Exit Status
condor_compileis a script that executes specified compilers and/or linkers. If an error is encountered before calling these other programs,
condor_compilewill exit with a status value of 1 (one). Otherwise, the exit status will be that given by the executed program.
Author
Condor Team, University of Wisconsin-Madison
Copyright
Copyright (C) 1990-2012 Condor Team, Computer Sciences Department, University of Wisconsin-Madison, Madison, WI. All Rights Reserved.
Licensed under the Apache License, Version 2.0.
See the Condor Version 7.8.2 Manualor http://www.condorproject.org/licensefor additional notices. condor-admin@cs.wisc.edu
September 2012 condor_compile(1)