could not compile used unit "IdHTTPWebBrokerBridge", delphi 2005 - delphi

I have this problem for days now. I have a delphi app that i tried to run in my laptop. This program runs very good in other computer, but when i try to copy the program in my laptop, it displays LOTS of errors:
[Error] IdHTTPWebBrokerBridge.pas(46): E2003 Undeclared identifier: 'TIdPeerThread'
[Error] IdHTTPWebBrokerBridge.pas(104): E2170 Cannot override a non-virtual method
[Error] IdHTTPWebBrokerBridge.pas(238): E2029 ')' expected but identifier 'Connection' found
[Error] IdHTTPWebBrokerBridge.pas(238): E2066 Missing operator or semicolon
[Error] IdHTTPWebBrokerBridge.pas(242): E2029 ':=' expected but ':' found
[Error] IdHTTPWebBrokerBridge.pas(242): E2015 Operator not applicable to this operand type
[Error] IdHTTPWebBrokerBridge.pas(242): E2014 Statement expected, but expression of type 'string' found
[Error] IdHTTPWebBrokerBridge.pas(243): E2029 ':=' expected but ':' found
[Error] IdHTTPWebBrokerBridge.pas(243): E2015 Operator not applicable to this operand type
[Error] IdHTTPWebBrokerBridge.pas(244): E2029 ':=' expected but ':' found
[Error] IdHTTPWebBrokerBridge.pas(244): E2015 Operator not applicable to this operand type
[Error] IdHTTPWebBrokerBridge.pas(245): E2029 ':=' expected but ':' found
[Error] IdHTTPWebBrokerBridge.pas(245): E2015 Operator not applicable to this operand type
[Error] IdHTTPWebBrokerBridge.pas(246): E2153 ';' not allowed before 'ELSE'
[Error] IdHTTPWebBrokerBridge.pas(249): E2029 '.' expected but ';' found
[Error] IdHTTPWebBrokerBridge.pas(308): E2066 Missing operator or semicolon
[Error] IdHTTPWebBrokerBridge.pas(308): E2066 Missing operator or semicolon
[Error] IdHTTPWebBrokerBridge.pas(451): E2066 Missing operator or semicolon
[Error] IdHTTPWebBrokerBridge.pas(451): E2066 Missing operator or semicolon
[Error] IdHTTPWebBrokerBridge.pas(499): E2037 Declaration of 'Create' differs from previous declaration
[Error] IdHTTPWebBrokerBridge.pas(501): E2075 This form of method call only allowed in methods of derived types
[Error] IdHTTPWebBrokerBridge.pas(502): E2003 Undeclared identifier: 'FOkToProcessCommand'
[Fatal Error] Primews.dpr(145): F2063 Could not compile used unit 'SourceServerBase\IdHTTPWebBrokerBridge.pas'
I dont know how to solve this problem on my own since its my first time tbhat i have encountered this. Any suggestions of what should i do? thank you all guys.
Got new problem
I didn't make a change after i posted this problem. Now, it displays new error message saying:
[Fatal Error] Primews.dpr(67): F2051 Unit DBClient was compiled with a different version of DSIntf.szFIELDNAME
What does it mean?
By the way, I am using delphi 2005 personal in my laptop.
enter code here

TIdPeerThread is a class in Indy 9 and earlier. It does not exist in Indy 10. It was replaced with TIdContext. So you are using the wrong version of IdHTTPWebBrokerBridge.pas for your laptop's version of Indy. You can get the latest version of Indy 10 and IdHTTPWebBrokerBridge.pas from Indy's SVN server or Fulgan mirror. Links to both are on Indy's website.

Related

Arduino Compiling errors with Wifi Nat code for a Wifi Extender

I'm using this git repo by martin-ger
https://github.com/martin-ger/lwip_nat_arduino
I tried compiling for the same code but I'm getting a lot of errors
Can someone help ?
error: field 'start_ip' has incomplete type
struct ip_addr start_ip;
error: field 'end_ip' has incomplete type
struct ip_addr end_ip;
error: field 'ip' has incomplete type
struct ip_addr ip;
error: could not convert 'myIP' from 'IPAddress' to 'ip_addr_t {aka ip_addr}'
^
error: 'IP_NAPT_MAX' was not declared in this scope
error: 'IP_PORTMAP_MAX' was not declared in this scope

LLVM ERROR: Error parsing inline asm, unexpected token

I am new to LLVM and clang. I am working on a tool that uses LLVM/clang in the backend as a compiler. With the recent changes in LLVM tool, I have started getting following error:
<inline asm>:1:13: error: unexpected token in argument list
lock addb 2$2, 1048576
^
LLVM ERROR: Error parsing inline asm
I do not have any idea how to resolve this. Any input is appreciated.

Caffe build fail: Makefile:591: recipe for target '.build_release/src/caffe/util/io.o' failed

Hello I' ve got issue on caffe installation. I did everything in accordance to the instruction https://github.com/BVLC/caffe/wiki/Ubuntu-16.04-Installation-Guide (for CPU version)
On command make all I've got the following output:
CXX src/caffe/util/io.cpp
In file included from /usr/local/include/opencv2/core.hpp:52:0,
from /usr/local/include/opencv2/core/core.hpp:48,
from src/caffe/util/io.cpp:6:
/usr/local/include/opencv2/core/cvdef.h:421:4: error: #error "OpenCV 4.x+ requires enabled C++11 support"
# error "OpenCV 4.x+ requires enabled C++11 support"
^
In file included from /usr/include/c++/5/array:35:0,
from /usr/local/include/opencv2/core/cvdef.h:426,
from /usr/local/include/opencv2/core.hpp:52,
from /usr/local/include/opencv2/core/core.hpp:48,
from src/caffe/util/io.cpp:6:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support \
^
In file included from /usr/local/include/opencv2/core/base.hpp:58:0,
from /usr/local/include/opencv2/core.hpp:54,
from /usr/local/include/opencv2/core/core.hpp:48,
from src/caffe/util/io.cpp:6:
/usr/local/include/opencv2/core/cvstd.hpp:389:12: error: expected ‘,’ or ‘...’ before ‘&&’ token
Ptr(Ptr&& o);
^
/usr/local/include/opencv2/core/cvstd.hpp:389:16: error: invalid constructor; you probably meant ‘cv::Ptr<T> (const cv::Ptr<T>&)’
Ptr(Ptr&& o);
^
/usr/local/include/opencv2/core/cvstd.hpp:390:25: error: expected ‘,’ or ‘...’ before ‘&&’ token
Ptr& operator = (Ptr&& o);
^
In file included from /usr/local/include/opencv2/core/cvstd.hpp:1033:0,
from /usr/local/include/opencv2/core/base.hpp:58,
from /usr/local/include/opencv2/core.hpp:54,
from /usr/local/include/opencv2/core/core.hpp:48,
from src/caffe/util/io.cpp:6:
/usr/local/include/opencv2/core/ptr.inl.hpp:256:16: error: expected ‘,’ or ‘...’ before ‘&&’ token
Ptr<T>::Ptr(Ptr&& o) : owner(o.owner), stored(o.stored)
^
/usr/local/include/opencv2/core/ptr.inl.hpp:256:1: error: prototype for ‘cv::Ptr<T>::Ptr(cv::Ptr<T>)’ does not match any in class ‘cv::Ptr<T>’
Ptr<T>::Ptr(Ptr&& o) : owner(o.owner), stored(o.stored)
^
In file included from /usr/local/include/opencv2/core/base.hpp:58:0,
from /usr/local/include/opencv2/core.hpp:54,
from /usr/local/include/opencv2/core/core.hpp:48,
from src/caffe/util/io.cpp:6:
/usr/local/include/opencv2/core/cvstd.hpp:319:5: error: candidates are: template<class T> template<class Y> cv::Ptr<T>::Ptr(const cv::Ptr<Y>&, T*)
Ptr(const Ptr<Y>& o, T* p);
Here is also a lot of text in output but I cannot upload it because of limit on number of characters
Makefile:591: recipe for target '.build_release/src/caffe/util/io.o' failed
make: *** [.build_release/src/caffe/util/io.o] Error 1
Can somebody help me with this problem?
OS: Ubuntu 16.04
cmake version 3.5.1
Cuda version: 10.0.130
The problem was in 4th version of OpenCV. Caffe dosen't work with it. When I installed 3rd version everything was ok.

Error installing kdtree

When I tried running my Ruby code with bundle install, I encountered this error: Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
I tried running gem install kdtree and gem install kdtree -v '0.3' but it throws me the same error as well. Now I am unable to run my Ruby code. Any ideas on how to resolve this. I am running on Windows machine btw. Here's the full error log:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
C:/RailsInstaller/Ruby2.1.0/bin/ruby.exe extconf.rb
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
generating kdtree-i386-mingw32.def
compiling kdtree.c
kdtree.c: In function 'kdtree_nearest0':
kdtree.c:221:13: error: expected identifier or '(' before ',' token
kdtree.c:237:14: error: expected expression before '=' token
kdtree.c:237:29: error: expected expression before '=' token
kdtree.c:239:14: error: expected expression before '=' token
kdtree.c:239:30: error: expected expression before '=' token
kdtree.c:241:34: error: expected expression before ',' token
kdtree.c:241:34: error: too few arguments to function 'kdtree_nearest0'
kdtree.c:217:13: note: declared here
kdtree.c:243:37: error: expected expression before ',' token
kdtree.c:243:37: error: too few arguments to function 'kdtree_nearest0'
kdtree.c:217:13: note: declared here
kdtree.c: In function 'kdtree_nearestk0':
kdtree.c:313:13: error: expected identifier or '(' before ',' token
kdtree.c:330:14: error: expected expression before '=' token
kdtree.c:330:29: error: expected expression before '=' token
kdtree.c:332:14: error: expected expression before '=' token
kdtree.c:332:30: error: expected expression before '=' token
kdtree.c:334:35: error: expected expression before ',' token
kdtree.c:334:35: error: too few arguments to function 'kdtree_nearestk0'
kdtree.c:309:13: note: declared here
kdtree.c:336:38: error: expected expression before ',' token
kdtree.c:336:38: error: too few arguments to function 'kdtree_nearestk0'
kdtree.c:309:13: note: declared here
kdtree.c: In function 'kdtree_persist':
kdtree.c:409:11: warning: unused variable 'str' [-Wunused-variable]
make: *** [kdtree.o] Error 1
make failed, exit code 2

Error trying to install rinku gem on mac

I'm having trouble installing the rinku gem version '1.7.3' on Mavericks. I followed the advice of another post that suggested to install apple-gcc42 but that didn't help. I've also tried searching google and stack overflow but couldn't find this exact issue. Here is the error:
Building native extensions. This could take a while...
ERROR: Error installing rinku:
ERROR: Failed to build gem native extension.
/Users/home/.rvm/rubies/ruby-1.9.3-p429/bin/ruby extconf.rb
creating Makefile
make clean
make
compiling autolink.c
In file included from autolink.c:17:
buffer.h:23:20: error: stdint.h: No such file or directory
In file included from autolink.c:17:
buffer.h:41: error: expected specifier-qualifier-list before 'uint8_t'
In file included from autolink.c:18:
autolink.h:31: warning: type defaults to 'int' in declaration of 'uint8_t'
autolink.h:31: error: expected ';', ',' or ')' before '*' token
autolink.h:35: error: expected declaration specifiers or '...' before 'uint8_t'
autolink.h:39: error: expected declaration specifiers or '...' before 'uint8_t'
autolink.h:43: error: expected declaration specifiers or '...' before 'uint8_t'
autolink.c:20:20: error: string.h: No such file or directory
autolink.c:21:20: error: stdlib.h: No such file or directory
autolink.c:22:19: error: stdio.h: No such file or directory
autolink.c:23:19: error: ctype.h: No such file or directory
autolink.c:30: warning: type defaults to 'int' in declaration of 'uint8_t'
... Had to leave out some of the error because it won't let me post this without a lower code to text ratio.
autolink.c: At top level:
autolink.c:256: error: expected declaration specifiers or '...' before 'uint8_t'
autolink.c: In function 'sd_autolink__url':
autolink.c:263: error: 'data' undeclared (first use in this function)
autolink.c:266: warning: implicit declaration of function 'isalpha'
autolink.c:269: warning: implicit declaration of function 'sd_autolink_issafe'
autolink.c:272: warning: incompatible implicit declaration of built-in function 'strlen'
make: *** [autolink.o] Error 1
make failed, exit code 2
this ended up fixing it for 1.9.3
xcode-select --install

Resources