I have a function from the Sedgewick'sbook
When I compile the whole program, I always got error:
The book website does not mention this bug. Quite vague with Iterable in Java so far. Can someone help me fix the problem? Thanks in advance.
It's not a bug. You will have to download and compile all the dependencies before compiling PathFinder.java - the dependencies are mentioned at the top blurb of each Java file. Also ensure the dependencies are in your CLASSPATH.
I tested the following using javac version 1.8 and 1.7 and they work fine with both.
After cleaning up the .class files and setting up javac version 1.7:
Instead of downloading and compiling the dependencies individually, you could, alternatively, download their jar file and put it in your CLASSPATH.
This User Gave Thanks to durden_tyler For This Post:
Hi,
I'm working with Mercury tools: Loadrunner, and I'm trying to monitor a unix server by rstatd, and I got next error:
Mar 4 11:25:56 sacindt rpc.rstatd: incompatible to /proc. Could not read disk_io: data
does any one have an idea about this..
regards (0 Replies)
while compiling my code with -pg option
i got the following error:
ld (prelink):
-pg incompatible with -shared; assuming -nopg
any idea to overcome this problem?
how can i use gprof profiler for a program using shared libraries? (2 Replies)
I have a Sun Sparc machine with Solaris 9 on it as oracle server. We added two patches (112233-11: SunOS 5.9:Kernel Patch and 111722-04: SunOS 5.9:MathLibrary(libm)patch). When I prepared the server for Oracle installation, I checked patch with command: $/usr/sbin/patchadd -p | grep <patch_number>.... (0 Replies)
I am new to PHP and UNIX. I am using Apache to do my testing on a Windows Vista machine.
I am getting this error when I am trying to connect to a web service. I did a search and did not see any posts that pertain to this.
Here is my function:
<?php
function TRECSend($a, $b, $c, $d,... (0 Replies)
Hi guys,
here is my code written in C and the compiler error message.
int i;
int (*a);
for (i = 1;i <= 9;i++)
a = (int *)malloc(sizeof(int) * 10);here is the error:
incompatible types when assigning to type ‘int’ from type ‘int *’I want to make a two dimensional array. I... (2 Replies)
I'm compiling an application someone gave me. It uses XLC on a Power7, running Red Hat (4? 5?). It compiles and links, but I get the following message for every .o and .exe...
xlc_r: 1501-274 (W) An incompatible level of gcc has been specified.
I've tried googling on this error, and I'll I... (2 Replies)
How to initialize an object of class say "A", with an object of type say "B".
The following code give the error message "error: conversion from âAâ to non-scalar type âBâ requested"
#include <iostream>
using namespace std;
class B;
class A{
public:
A() { cout <<"\nA()" << endl; }
... (1 Reply)
This is from a program I wrote over in 1998 that I am trying to compile on a linux machine:
void write_line (FILE *fp, int rec_no, line_rec *arec)
{
fpos_t woffset;
woffset = (rec_no - 1) * sizeof(line_rec);
fsetpos(fp,&woffset);
fwrite(arec,sizeof(line_rec),1,fp);
}On the line... (2 Replies)