Programming :: FORTRAN77 Code Not Working - Showing No Error
May 17, 2010I have written FORTRAN77 code,also a makefile. But is not working at all. how to start looking for errors?
View 9 RepliesI have written FORTRAN77 code,also a makefile. But is not working at all. how to start looking for errors?
View 9 RepliesI am running Valgrind on my program. It shows me two errors but mentions only addresses against them and not actual code even on a debug build.
The output is
==23002== Memcheck, a memory error detector.
==23002== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==23002== Using LibVEX rev 1575, a library for dynamic binary translation.
[code]....
Parse error: syntax error, unexpected '@' in C:xampphtdocsminippromail.php on line 8 .......its not recognizing the '@' symbol. heres the code im working with
<?php $receiver = myfriend@ourmail.co.in; $subject = wish; $content = Hi! My dear friend how are you.; $sender = myself@ ourmail.co.in ; $headers = From: $sender; mail($receiver,$subject, $content,$headers); echo Mail has been sent successfully.; ?>
I just upgraded servers, and I'm now on 'perl v5.8.8 built for i386-linux-thread-multi' and a simple log script doesn't work. I got it changed to
Code:
#!/usr/bin/perl
use strict;
[code]....
I actually thought there was something wrong with my programming skills.ut after I compiled the same code using Visual Studio, it worked. So here's the code that doesn't seem to be working right with gcc compilers, but they do compile. Note I'm using the Cygwin 3.4.4 version of gcc and 4.5.1 version of gcc from MinGW.
Code: #include <stdio.h>
#include <math.h>
int main()
[code]...
I am passing an array in function. I want to read the first content again and again until it is empty so
function calltoarray
{
read $1[0]
while [ ! -n "$1[0]" ]
do
echo empty
read $1[0]
done
}
But the code is not working. If we just press enter without value at read $1[0]. It do not get into while loop.
i want to run this code
[code]...
i have error in graphics. i have C++ 2005
I am novice. I am trying to create one email form. But i am getting "Parse error: parse error in F:estwampwwwsendmail.php on line 43"
Code:
<?php
if(isset($_POST['email'])) {
[code]....
I am piecing a Mandelbrot generator up, I have one working to produce a 1,500 x 1,500 picture (which is fairly accurate).
I would like to increase the resolution over 100,000 x 100,000 + (into the millions x millions).
How I can achieve this? What kind of buffer sizes do I need?
(note this code doesnt have any memory allocations yet)
Here is my code so far:
The program outputs the Mandelbrot as a .tga file. I calculated the image on fixed axis of -2 to 2 (on the x and y axis). Image produced: [url]
CD Player not working. Tried uninstalling and re-installing without success.
View 2 Replies View RelatedI'm a C / assembler programmer so am not use to C++, which I need to use. Basically I'm using my own versions of memcpy, but for long and int rather than char. It's for fast graphics. So I have a char array which I copy to another array. But I copy as either longs or ints, much faster. for example
Code:
void * fastmemcpysprite (void *destaddr, void const *srcaddr, size_t len)
{
[code]...
I'm writing a sort of toy shell using fork() and execv(). It runs smoothly enough untill the user enters an invalid command at which point the program hangs, so I need a way to check if the program loaded using execv returned correclty or not in the parent process and kill it if it didntI tried writing stderr to a text file to see if something whent wrong but doesnt really work out. Try running ./digenv GDM -i -Q for instance. (-Q is an invalid option for grep which the program runs at a certain point).Heres the code:
Code:
//digenv
//Carl Reg�rdh 2011-03-24
[code]....
Is there an online resource to lookup error messages generated when compiling C++ code?
View 5 Replies View Relatedplease i try to compile the below code on ubuntu with g++ but i was getting an error message
fig03_05.cpp:10: error: new types may not be defined in a return type
fig03_05.cpp:10: note: (perhaps a semicolon is missing after the definition of �GradeBook�)
fig03_05.cpp:32: error: two or more data types in declaration of �main�
[code]...
I selected the zc0301 driver as module when i compile the kernel...and i copied the "zc0301.ko" file from default kernel...but when insert using "insmod" its not working..showing the error..
insmod: error inserting 'zc0301.ko': -1 Invalid module format
How to insert this driver?
when I execute the command from the shell command line - it works and no error code.if I do the exact same command from a perl file - it fails with code 32512.the file is created from the same perl script that runs the command that fails. file permission is 0664.
Code:
#! /usr/local/pkg/perl-5.8.8/bin/perl
print "Content-type: text/html
[code]...
I've been requested to modify a perl backup script we use which mounts a networked NAS machine. The actual mount command is called inside a system() command. In testing, I can do a test of the return value, so I'm able to tell whether or not I've mounted properly, but I can't make heads or tails out of the return on deliberate errors. (Such as mounting a non-existent box.) I'm displaying the returned value, which is 256 in my tests. The man page for mount listed error messages with values from 1 to 64, but no higher. Am I drawing this error value from the system command somehow? And what would be the best way to determine what this error means?
View 6 Replies View RelatedI need to rewrite the selenium java code into its equivalent php code.
View 5 Replies View RelatedI've been trying to learn php but I can't find a way to get started. I have mysql, php, etc. I have the daemons running and if I go to http://localhost it says it works! But if I try to "run" a php file like http://localhost/test.php all I get is the source code showing in my browser.
Lets say I want to output a simple message:
<?php
echo "Hello world";
?>
Well that's what I get in my browser I don't see the message but the code itself. I had to uncomment Include /etc/httpd/mod_php.conf at the end of htppd.conf .
I would like to know when usb inserted, its showing cant mount when i clicked details its showing bad blocks in beginning , and smething in /dev/sd6. Can i knw why usb drive cant be mounted automatically , even if its set to do so, and to cope the error mentioned above
View 1 Replies View RelatedI have this one last task for this app I've been working on (should have picked something easier for my first project)
It has working "def sav_scr_vars" and "def AddEntry" but these save to a fixed filename when save as defults or ok button is clicked. This is fine but I want to be able to save via the same proccess to a named ~/bin/settings/xxx.set file what I did is clone the to above def's and try to edit them I got the "read file" to work fine from a saved file in this manner. but I can't seem to get the save to filename to work without errors. The cloned def's are "save_as" and inmain.py "write_config2"
the camm2.defaults file goes in ~/.hpgl
copy and paste this to ~/.hpgl/camm2.conf
~/.hpgl/camm2.defaults
The file is always to have a .set extension and only read and write to ~/bin/settings
If I have a hard-disk with Ubuntu fully installed on it and I want to - all of a sudden - use Windows XP, is it mandatory that I firstly format the hard-disk first? So far, I have used two versions of Windows XP; one of them is from a few years before the other. Both copies of Windows XP when in start-up from booting from CD are causing errors. One of them is a BSOD error (0x0000007B) and the next Windows CD is stopping and giving me an error with setupdd.sys (error code 4). Is it required that the hard-disk is formatted before you even put a Windows boot CD in?
View 2 Replies View RelatedI got this script from website for inviting peoples to game and earning points easily ...but this seems not working and giving error..
View 4 Replies View RelatedI'm trying to sync a folder between my Windows install and my PCLinux install. Same machine, Windows 7 on the C drive and Linux on an external USB hard drive.
Using the Grsync GUI, I searched for the source and destination folders, and then executed the command. Here is the output:
** Launching RSYNC command (simulation mode): pkexec rsync -r -n -t -v --progress -s /media/Win7/Documents and Settings/Paul/Application Data/The Word file:///root/.wine/drive_c/Program Files/The Word/myData
ssh: connect to host file port 22: No route to host
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(601) [sender=3.0.7]
Rsync process exit status: 255
It seems to be doing an FTP operation, whereas all I need is a file transfer. Can anyone point out my error here?
simple scan error as follows: Failed to save file ImageMagick returned error code 11 Command line: convert -adjoin /tmp/simple-scan-DA9MBV.jpg /tmp/simple-scan-XCK4BV.jpg /tmp/simple-scan-NZVYBV.pdf Stdout: Stderr: using karmic note: I have apparmor extra profiles installed but didn't notice one that related to simple scan or imagemagick. Red herring or not?
View 6 Replies View RelatedI have just upgraded my ubuntu to 11.04 .After it is done ,I could install any software ,the error is as follows:
E: Sub-process /usr/bin/dpkg returned an error code (1)
I wonder what is the meaning of the error.
I am working on a project with a lot of vector math and I'd like to find a way to speed it up.eading about SSE, but I've found no explanation on how to actually use it in code (was looking for some kind of hello-world example, complete with compilation instructions).Does the gcc compiler automatically make use of SSE, if you add the -sse(2,3) option on the command line? Or are their specific functions/libraries you need to call?
View 12 Replies View RelatedIs there, by chance, a fancy name to describe code that must be in a program but will never be executed? In one of my (Haskell) programs, I have some error-handling code that must be in the program to keep the compiler happy (due to the type checking). However I know that, due to the logical structure of the program, it is impossible for the code to be evaluated. I am curious if there is a technical name given to code that must exist but cannot be executed.
View 6 Replies View RelatedI went to compile some "oldish" glx code. The code compiles great but when I go to run it I get a crash. With X Error of failed request: BadMatch (in .....running ddd causes my whole system to lock up when I call the glx function XOpenDisplay. After a few attempts I thought I'd download a demo from the net, I choose nehe opengl tutorial 2, I compiled and ran but even on a net tutorial I get the same error
./lesson02
XF86VidModeExtension-Version 2.2
Got Doublebuffered Visual!
[code]....
I have the following code:
Code:
#!/bin/bash
function dx {
[Code].....
So essentially, it finds dx files, sorts them by numbers at the beginning, then performs the dx function I made (loops over all of the #-protein.dx and #-water.dx files).
It works fine when I'm running it on Ubuntu 11.04. However, when I try to run it on OSX, I get the following error:
Code:
mh320m01:DA_R02 janickij$ ./MOD_Loop_Tuber_Script.sh
find: illegal option -- t
find: illegal option -- y
[Code]....