ABF "error: expected identifier or '(' before '=' token"When trying to compile an ABF application on a Red Hat Enterprise
Linux Server release 5.4,Intel(R) Xeon(R) and II 9.1.2 (int.lnx/
100)NPTL,
I get the following errors :
"Processing form 'ylxo60701p' . . .
Forcing compilation to create object file.
Compiling '218688.c' . . .
218688.c:1420: error: expected identifier or '(' before '=' token
E_AB001E Compilation failed"
I've found out that the form in question (218688.c) is missing the
global FRAME identifier here :
FRAME * = {
&_form0
};
which should be replaced wi...
Compile time error: "error: 'write_n' is not a member of 'ACE'"Hi All,
ACE VERSION: 5.5.6
HOST MACHINE and OPERATING SYSTEM: LINUX, Kernel 2.6.19-1.2288.fc5,
i686
I tried to compile the program given below, but was giving following
compilation error:
Please help me to compile this proram
---------------------------------------
COMPILATION------------------------------------------
[root@paresh ACE_MSG_BLOCK]# g++ main.C -o main -lACE -IACE_ROOT
main.C: In function 'int main(int, char**)':
main.C:9: error: 'read_n' is not a member of 'ACE'
main.C:20: error: 'write_n' is not a member of 'ACE'
----------------------------------END
COMPILATION--------------------------------------------
---------------------------------------------PROGRAM
main.C---------------------------------------------
#include "ace/OS.h"
#include "ace/Message_Block.h"
int main(int argc, char* argv[]) {
ACE_Message_Block *head = new ACE_Message_Block(BUFSIZ);
ACE_Message_Block *mblk = head;
for(;;) {
ssize_t nbytes = ACE::read_n(ACE_STDIN, mblk-
>wr_ptr(), mblk->size());
if(nbytes <= 0)
break;
mblk->wr_ptr(nbytes);
mblk->cont(new ACE_Message_Block(BUFSIZ));
mblk = mblk->cont();
}
for(mblk = head; mblk != 0/*NULL POINTER*/; mblk = mblk-
>cont()) {
ACE::write_n(ACE_STDOUT, mblk-&g...
'Parse error' problem in "isset" and "empty"I've been having some problems with a parse error that I can't figure
out (PHP 4.3.11 on Solaris9). Sample code:
<?php
// getting strange parse errors on this
class A {
var $value;
function A() {
$this->value = 1;
}
function getValue() {
return $this->value;
}
}
$a = new A();
if (!empty($a->getValue())) {
echo "success";
}
else {
echo "failure";
}
?>
The result of this is:
Parse error: parse error, unexpected '(', expecting ')' in
/foo/public_html/parse_errors.php on line 15
I also get the same effect with "iss...
"error C2057: expected constant expression", "error C2466: cannot allocate an array of constant size 0". Why doesn't my simple program work???Hi:
I have the following simple program:
#include<iostream>
using namespace std;
int main(int argc, char* argv[]){
const double L = 1.234;
const int T = static_cast<const int>(L);
int arr[T];
return 0;
}
But I get the error message shown in title. Why doesn't my program
work? Thanks for help!
On 2007-01-20 17:08, hn.ft.pris@gmail.com wrote:
> Hi:
> I have the following simple program:
>
> #include<iostream>
> using namespace std;
> int...
Re: [ace-users] Compile time error: "error: 'write_n' is not a member of 'ACE'"Hi,
You lack an include, include "ace/ACE.h" in your program
Regards,
Johnny Willemsen
Remedy IT
Postbus 101
2650 AC Berkel en Rodenrijs
The Netherlands
www.theaceorb.nl / www.remedy.nl
"Paresh" <pareshspednekar@gmail.com> wrote in message
news:<1173985162.346951.209100@y66g2000hsf.googlegroups.com>...
> Hi All,
>
> ACE VERSION: 5.5.6
> HOST MACHINE and OPERATING SYSTEM: LINUX, Kernel 2.6.19-1.2288.fc5,
> i686
>
> I tried to compile the program given below, but was giving following
> compilation error:
> Please help me to compile this proram
>
> ---------------------------------------
> COMPILATION------------------------------------------
> [root@paresh ACE_MSG_BLOCK]# g++ main.C -o main -lACE -IACE_ROOT
> main.C: In function 'int main(int, char**)':
> main.C:9: error: 'read_n' is not a member of 'ACE'
> main.C:20: error: 'write_n' is not a member of 'ACE'
> ----------------------------------END
> COMPILATION--------------------------------------------
>
>
>
> ---------------------------------------------PROGRAM
> main.C---------------------------------------------
>
> #include "ace/OS.h"
> #include "ace/Message_Block.h"
>
> int main(int argc, char* argv[]) {
> ACE_Message_Block *head = new ACE_Message_Block(BUFSIZ);
> ...
xclock fail with "Error: Can't open display" on "ssh -X"I can ssh -X to a RHEL4 linux and a HP-UX B.11.23 U ia64 computer
from a FC6 linux computer.
I can run
xclock or xterm
on the RHEL4 linux computer.
However, running
xclock or xterm
on the HP-UX B.11.23 U ia64 computer has these errors:
bash-3.2# xclock
Error: Can't open display:
Error: Couldn't find per display information
bash-3.2# xterm
xterm Xt error: Can't open display: %s
bash-3.2# sshd -version
sshd: illegal option -- v
OpenSSH_4.5p1+sftpfilecontrol-v1.1-hpn12v14, OpenSSL 0.9.7l 28 Sep
2006
HP-UX Secure Shell-A.04.50.021, HP-UX Secure Shell version
Using "ssh -Y" to login to the RHEL4 and HPUX computer get the same
result.
Please help so that I can run xclock or xterm on the HPUX computer.
On Mon, 5 Jan 2009 17:34:57 -0800 (PST), TsanChung wrote:
> I can ssh -X to a RHEL4 linux and a HP-UX B.11.23 U ia64 computer
> from a FC6 linux computer.
> I can run
> xclock or xterm
> on the RHEL4 linux computer.
> However, running
> xclock or xterm
> on the HP-UX B.11.23 U ia64 computer has these errors:
might try
xhost +localhost
ssh RHEL4.ip.here
You may want to verify your hupx login script(s) does not hard code $DISPLAY
On Jan 5, 9:01=A0pm, Bit Twister <BitTwis...@mouse-potato.com> wrote:
> On Mon, 5 Jan 2009 17:34:57 -0800 (PST), TsanChung wrote:
> > I can ssh -X to a RHEL4 linux and a HP-UX B.11.23 U ia64 computer
> > from a FC6 linux computer.
> > I can run
> > xclock or xterm
&...
xclock fail with "Error: Can't open display:" on "ssh -X" I can ssh -X to a RHEL4 linux and a HP-UX B.11.23 U ia64 computer
from a FC6 linux computer.
I can run
xclock or xterm
on the RHEL4 linux computer.
However, running
xclock or xterm
on the HP-UX B.11.23 U ia64 computer has these errors:
bash-3.2# xclock
Error: Can't open display:
Error: Couldn't find per display information
bash-3.2# xterm
xterm Xt error: Can't open display: %s
bash-3.2# sshd -version
sshd: illegal option -- v
OpenSSH_4.5p1+sftpfilecontrol-v1.1-hpn12v14, OpenSSL 0.9.7l 28 Sep
2006
HP-UX Secure Shell-A.04.50.021, HP-UX Secure Shell version
Using "ssh -Y"...
ipfw 'table' doens't exist? Gives "ipfw: setsockopt(IP_FW_TABLE_ADD): Invalid argument" ErrorHey,
I've recently setup ipfw to attempt to block some of the abusers
trying to gain access to my web server and have run into a problem.
I was originally using add rules like so:
add 600 deny log all from 218.0.0.0/8 to any in
add 601 deny log all from 202.0.0.0/7 to any in
add 602 deny log all from 219.0.0.0/8 to any in
But after reading some information from newsgroups I was told it's
best to use a table to deny large amounts of people as it improves
efficiency, and was told to setup my ipfw.rules like so:
ipfw table 666 add 218.0.0.0/8
ipfw table 666 add 202.0.0.0/7
ipfw table 666 add 219.0.0.0/8
ipfw table 666 add 222.0.0.0/8
ipfw table 666 add 124.0.0.0/8
ipfw add 400 deny ip from table(666) to any
However when trying to run this, I get a seres of errors that all
repeat the same thing:
"ipfw: setsockopt(IP_FW_TABLE_ADD): Invalid argument"
Not sure how to resolve this and my extensive Google searches have
turned up nothing besides C scripting for ipfw. Any help would be
greatly appreciated.
Thanks in Advance.
Inferno wrote:
> ipfw table 666 add 218.0.0.0/8
> ipfw table 666 add 202.0.0.0/7
> ipfw table 666 add 219.0.0.0/8
> ipfw table 666 add 222.0.0.0/8
> ipfw table 666 add 124.0.0.0/8
> ipfw add 400 deny ip from table(666) to any
>
> However when trying to run this, I get a seres of errors that all
> repeat the same thing:
>
> "ipfw: setsockopt(IP_FW_TABLE_ADD...
Error
Why does the code below give me this error? What can I do to fix it?
/people3.rb:4:in `+': can't convert nil into String (TypeError)
om C:/Ruby192/people3.rb:4:in `to_s'
class Person
attr_accessor :fname, :lname, :age
def to_s
"hi " + @fname + ", " + @lname
end
end
Thanks
PR
--
Posted via http://www.ruby-forum.com/.
On Sep 29, 12:03=A0am, Paul Roche <prpaulro...@gmail.com> wrote:
> Why does the code below give me this error? What can I do to fix it?
>
> /people3.rb:4:in `+': can't convert nil into String (...
Re: Mandis Quotes (aka retiring """ and ''')Russell Nelson wrote:
> If you need to put a single quote in, then you put
> an arbitrary string in-between the single quotes which does NOT
> appear in the string. For example, "Bill's house" becomes
> 'x'Bill's house'x'.
So possible examples might be:
'xx'somebody's mother'xx'
'xy'somebody's father'xy'
'wink'somebody's uncle'wink'
'quote'somebody's body'quote'
not terrible easy on the eyes, and why use the single quote at all? Why no=
t use a similar pattern li...
'quote' to `quote'Hi,
what is the way to change 'shocking,' said Sally
into `shocking', said Sally
automatically as Tex read the
author.txt file?
Does this method also change "whatever happens," he said
into ``whatever happens.'' he said.
David R
David R <angel_ov_north@tiscali.co.uk> wrote:
> what is the way to change 'shocking,' said Sally
> into `shocking', said Sally
> automatically as Tex read the
> author.txt file?
It is possible (e.g. via an active '). But I suspect, this
is a lot easier using a script language or similar.
Also you should consider ['s] coming from genitive
and other uses of the apostrophe.
Yours sincerely
Heiko <oberdiek@uni-freiburg.de>
David R wrote:
> what is the way to change 'shocking,' said Sally
> into `shocking', said Sally
> automatically as Tex read the
> author.txt file?
Tricky thing to do on the TeX level because you can't tell a quote
from an apostrophe in a reliable and efficient way.
This will probably require pre-processing of author.txt (it's no big
deal with regular expressions).
> Does this method also change "whatever happens," he said
> into ``whatever happens.'' he said.
Assuming you're using Latex: try the csquotes package. See
\MakeOuterQuote{"} in the tutorial.
--
Sender address blackholed; do not reply to From: address.
You can still reach me by email at: plehman gmx net.
On Wed, 10 Ja...
solution to ""ERROR: Output argument 'a' was not assigned during call to 'xlim'": Link to download xlim.m/ylim.m is not updatedHi,
I found technical solution to download new fixed xlim.m/ylim.m files in this adress:
http://www.mathworks.com/support/solutions/en/data/1-19WWP/index.html?product=CO&solution=1-19WWP
However they refering to a link to get the fixed files - but the link is not available any more.
Do you know where I can download those files from?
Thanks,
Gilad
"Gilad Asseraf" <gilad_asseraf@amat.com> wrote in message
news:hsr9v6$333$1@fred.mathworks.com...
> Hi,
> I found technical solution to download new fixed xlim.m/ylim.m files in
> this adress:
&g...
Re: Mandis Quotes (aka retiring """ and ''') #2Russell Nelson notes:
> =
> Choose poor examples, and then criticize them as poor choices?
> =
true enough, but the suggested scheme introduces another variable into the =
language syntax; I might always make good choices <wink> on what delimiter =
I choose, but I might also end up working on code written by someone else w=
ho makes less good choices. Or vice versa.
=
> Exactly. It really would be better to have one(1) string literal
> which can quote anything without reverting to backslashing. Why one?
> Simpler parsing, simpler learning of the language, fewe...
ERROR: "Method 'Connection' of object '_Current Project' failed."I have created a front-end application and back-end database.
Everytime that I opened the program in the past, it open just fine
with no errors when linking to the back-end tables.
lately, I get the following error message whenever I open my
application:
ERROR: "Method 'Connection' of object '_Current Project' failed.
Check to see if you installed the tables used for storing data is in
the default directory. -2147024769
After clicking, "OK", my application continues on to open anyway.
I have checked the application to determine if the intended location
for the link tables where in view and relinked them to be sure. Each
of the forms continue to show data from the backend. But, I continue
to get the above error message.
Any clues?
John
...
expect script : "expect 'X', send 'Y'" until expect "Z".Hi.
I am having some difficulties with an expect script, and was hoping
someone could help me out here.
I am running a scripted telnet session to some 'black box' appliance,
and would like to retrieve the output of a particular command.
However, the output of the command is longer than a single screen
full. Since it was designed for interactive use, you get the magic
string "[=More (xx%)=]" after each screenfull of output, at which
point the command expects you to hit the spacebar in order to get
another screenfull of output.
Of course, I could just "send <space>" a few times, but since I have
no idea how long the output will be in advance, this does not appear
to be such a good approach. It looks like I would have to do something
were I keep sending a space as long as I keep getting/expecting the
string "[=More (xx%)=]", and stop doing that after I have
gotten/expected the prompt again. (which is "% ").
Does anyone have any idea on how to do such a thing in expect ? Of
course, other suggestions to tackle the same problem are welcome as
well of course.
Sincerely,
John Smith.
"J.Smith" <lbalbalba@hotmail.com> wrote in message
news:737da4e2.0410200305.1f12696f@posting.google.com...
> Hi.
>
>
> I am having some difficulties with an expect script, and was hoping
> someone could help me out here.
>
>
> I am running a scripted telnet session to some 'black box' applianc...
Why doesn't Python's "robotparser" like Wikipedia's "robots.txt" file? For some reason, Python's parser for "robots.txt" files
doesn't like Wikipedia's "robots.txt" file:
>>> import robotparser
>>> url = 'http://wikipedia.org/robots.txt'
>>> chk = robotparser.RobotFileParser()
>>> chk.set_url(url)
>>> chk.read()
>>> testurl = 'http://wikipedia.org'
>>> chk.can_fetch('Mozilla', testurl)
False
>>>
The Wikipedia robots.txt file passes robots.txt validation,
and it doesn't disallow unknown browsers. But the Python
pars...
error: "couldn't execute "date": no such file or directory" in Tkhi,
i am using the following code in a tcl script with the TK framework,
and i get the above error on executing the file main file..
main file
---------------
#!c:/tcl/bin/tclsh
label .l -text "click to execute"
button .b -text "Execute" -command "exec_script"
proc exec_script {} {
set inp 1
source sss.tcl
puts $inp
}
pack .l .b
sss.tcl
-----------------------------
#!c:/tcl/bin/tclsh
set inp 0
puts $inp
set d [exec date]
The error i get is "couldn't execute "date": no such file or
directory"
I am using Tk with Tcl and it is necessary to print the date along
with along with my output.
The "exec date" works perfect in a tcl script only. but when i use it
along with TK i get the error...
i will be glad if someone could please help me...
thank you..
On 21 Feb., 12:42, "ronnie" <maninder....@gmail.com> wrote:
> set d [exec date]
>
> The error i get is "couldn't execute "date": no such file or
> directory"
Since Tcl 7.6 or so, the [clock] function delivers date and time in a
portable way.
See http://www.tcl.tk/man/tcl8.4/TclCmd/clock.htm
Examples:
53615 % clock format [clock seconds]
Wed Feb 21 12:48:09 W. Europe Standard Time 2007
84 % clock format [clock seconds] -format %c
Mittwoch, 21. Februar 2007 12:48:21
53 % clock format [clock seconds] -format %Y-%m-%d,%H:%M:%S
2007-02-21,12:49:42
That [exec date] does work at times, and not at ...
ERROR: "Method 'Connection' of object '_Current Project' failed. -2147024769"I have created a front-end application and back-end database. I have
code that automatically links the front-end application to the
back-end database for whenever I provide a patch or upgrade.
Everytime that I opened the program in the past using either Access
2002 and 2003, it open just fine with no errors when linking to the
back-end tables.
Lately, I get the following error message whenever I open my
application:
ERROR: "Method 'Connection' of object '_Current Project' failed.
Check to see if you installed the tables used for storing data is in
the default directory. -2147024769"
After clicking, "OK", my application continues to open and re-links to
the back-end tables anyway. Yes, all the data displays in the
application front-end data fields.
I removed all the links to the back-end tables; re-imported the
back-end tables; same problem. This was then followed by with
creating a new application re-combining the front and back-ends (no
problems occurred in loading and using the application) and preceded
to re-split the application again. I continue to receive the above
error.
I went to backups and earlier versions of my application, up to 12
months, and now, they give out the same above error message. Could
this be an Access problem?
Any ideas on what is going on?
John
I've seen this problem when there are hidden table objects confusing my
re-linker. Have the re-linker print out the name of each table as it loops,
a...
ERROR: "Method 'Connection' of object '_Current Project' failed. -2147024769"Continue to get error message.
Here is an update of my problem and everything that I have done to
correct it.
I have created a front-end application and back-end database. I have
code that automatically links the front-end application to the
back-end database for whenever I provide a patch or upgrade. Everytime
that I opened the program in the past using either Access 2002 and
2003, it open just fine with no errors when linking to the back-end
tables.
Lately, I get the following error message whenever I open my
application:
ERROR: "Method 'Connection' of object '_Current Project' failed. Check
to see if you installed the tables used for storing data is in the
default directory. -2147024769"
After clicking, "OK", my application continues to open and re-links to
the back-end tables anyway. Yes, all the data displays in the
application front-end data fields.
I removed all the links to the back-end tables; re-imported the
back-end tables; same problem. This was then followed by with creating
a new application re-combining the front and back-ends (no problems
occurred in loading and using the application) and preceded to
re-split the application again. I continue to receive the above error.
I went to backups and earlier versions of my application, up to 12
months, and now, they give out the same above error message. Could
this be an Access problem?
John
John Phelan wrote:
> Continue to get error message.
>
> Here is an update...
Dev C++ Err "expected `]' before ';' token" / source "DWORD rtec_Stack[XYZ_SIZE] __attribute__((aligned(4)));"In Dev C++, we tried to compile a application, but it will throw some
peculiar error. please find it below
"path/main.cpp expected `]' before ';' token" and the source code is
"DWORD rtec_Stack[XYZ_SIZE] __attribute__((aligned(4)));"
is this problem of envirnment or else?
nagaraj wrote:
> In Dev C++, we tried to compile a application, but it will throw some
> peculiar error. please find it below
>
> "path/main.cpp expected `]' before ';' token" and the source code is
> "DWORD rtec_Stack[XYZ_SIZE] __attribute__((align...
"Run-Time Error '3012' : Object "------------" already existsDear Sir or Madam :
Hello !
Newbie to Access 2010 programming here ; I've a form which is almost complete -- HOWEVER, whenever selecting a specific pull-down, I'm thrown the error : "Run-time error '3012' : Object "------------" already exists "
Where "------------" is a 'set' statement... Hmmm... So... My code's below and if anyone can take a gander, it would be greatly appreciated ! ( The error checking MsgBoxes are showing me the data being returned is correct. ) It will help my office run more smoothly... Thanks in advance ! -- B.
Private Sub UserID_Click()
Dim dbs As Database, qdf As QueryDef, sqlQry As String, strSQL As String
Set dbs = CurrentDb
If (Court222 = "Middlesex") Then
strSQL = "SELECT Middlesex FROM Pricing WHERE Testpanel ='" & Panel & "'"
ElseIf (Court222 = "Suffolk") Then
strSQL = "SELECT Suffolk FROM Pricing WHERE Testpanel ='" & Panel & "'"
ElseIf (Court222 = "Essex") Then
strSQL = "SELECT Essex FROM Pricing WHERE Testpanel ='" & Panel & "'"
Else
strSQL = "SELECT Norfolk FROM Pricing WHERE Testpanel ='" & Panel & "'"
End If
MsgBox "strSQL: " & strSQL
'THE LINE BELOW IS WHERE THE ERROR OCCURS FOR "S...
Instruction at "0x00FC3D70" use memory address "0x00000000". Can't be "read".Yesterday, ALL code in python work and nothing when I close(finish) a code.
Today, when I close, some raise this windows error :
Instruction at "0x00FC3D70" use memory address "0x00000000". Can't be
"read".
Click on "OK" to exit program.
Why this error, today and not before today?
Askari
Askari wrote:
> Yesterday, ALL code in python work and nothing when I close(finish) a code.
> Today, when I close, some raise this windows error :
>
> Instruction at "0x00FC3D70" use memory address "0x00000000". Can't be
&...
"require 'sqlite3'" gives "no such file to load -- sqlite3 (LoadError)"hi, folks, I have been hacking away at this thing for a number of
hours now, and have found no solution. I have absolutely no idea what
happened here, but I do know for a fact that this has always been
working all along. I have ruby (from source), sqlite (from source),
gems, and the sqlite3-ruby gem installed, but try as I might, i keep
hitting into this error. What's wrong?
==========
# ruby -e "require 'sqlite3'"
-e:1:in `require': no such file to load -- sqlite3 (LoadError)
==========
# irb
irb(main):001:0> require 'sqlite3'
LoadError: no such file t...
[OT] Nit: please don't user "it's" unless you can substitute "it is" without changing your inteded meaning.Typos happen to all of us, but in case you hadn't realized what "it's"
is a contraction for ("it is"), now you do, and you can save yourself further
embarrassment (assuming you care ;-).
If your friends won't tell you, who will ;-)
Write the contraction "it's" only when you want its meaning
to be "it is," otherwise it's wrong ;-)
OTOH, how does one punctuate the posessive of a word per se?
E.g., the first letter of "it" is "i", but can one write that
as "it"'s first letter is "i," or it...
Why can't "define" double as "set!"?hi
Is there any good reason that "define" shouldn't double as "set!"?
dillogimp@gmail.com wrote:
> Is there any good reason that "define" shouldn't double as "set!"?
Yes: DEFINE defines variables, SET! changes the values of (defined)
variables:
(set! x 1) => wrong!
(define x 0)
(set! x 1)
x => 1
Some interpreters may implicitly define variables when you try
to set! them for the first time, thereby making DEFINE and SET!
/appear/ to be the same.
--
Nils M Holm <n m h @ t 3 x . o r g> -- http://t3x.org/nmh/
On Thu, 5 Apr 200...