Comments (23)
[deleted comment]
from xbt.
here we go =(
# ./make.sh
../misc/sql/sql_query.cpp:21:26: warning: using the result of an assignment as
a condition without
parentheses [-Wparentheses]
for (size_t i = 0, j; j = v.find('@', i); )
~~^~~~~~~~~~~~~~~~
../misc/sql/sql_query.cpp:21:26: note: place parentheses around the assignment
to silence this
warning
for (size_t i = 0, j; j = v.find('@', i); )
^
( )
../misc/sql/sql_query.cpp:21:26: note: use '==' to turn this assignment into an
equality comparison
for (size_t i = 0, j; j = v.find('@', i); )
^
==
1 warning generated.
In file included from ../misc/bvalue.cpp:1:
./stdafx.h:6:10: fatal error: 'array' file not found
#include <array>
^
1 error generated.
Original comment by [email protected]
on 27 Apr 2012 at 5:36
from xbt.
Did you enable C++11 mode?
Original comment by olafvdspek
on 27 Apr 2012 at 7:12
from xbt.
http://www.freebsd.org/doc/en_US.ISO8859-1/articles/custom-gcc/article.html
RU: http://www.freebsd.org/doc/ru/articles/custom-gcc/article.html
g++44 $@ -DNDEBUG -I ../misc -I . -O3 -o xbt_tracker -I /usr/local/include
-std=c++0x \
Error:
./make.sh
../misc/bvalue.cpp: In member function 'int Cbvalue::write(const char*&, const
char*)':
../misc/bvalue.cpp:166: error: 'atoll' was not declared in this scope
server.cpp: In member function 'int Cserver::run()':
server.cpp:180: error: 't_udp_sockets' has not been declared
server.cpp:180: error: expected ';' before 'i'
server.cpp:182: error: 'i' was not declared in this scope
tracker_input.cpp: In member function 'void Ctracker_input::set(const
std::string&, const std::string&)':
tracker_input.cpp:28: error: 'atoll' was not declared in this scope
tracker_input.cpp:54: error: 'atoll' was not declared in this scope
tracker_input.cpp:68: error: 'atoll' was not declared in this scope
Original comment by [email protected]
on 27 Apr 2012 at 9:55
from xbt.
What revision of misc and Tracker dirs is this?
Original comment by olafvdspek
on 27 Apr 2012 at 10:18
from xbt.
[deleted comment]
from xbt.
r2289
../misc/bvalue.cpp: In member function 'int Cbvalue::write(const char*&, const
char*)':
../misc/bvalue.cpp:166: error: 'atoll' was not declared in this scope
tracker_input.cpp: In member function 'void Ctracker_input::set(const
std::string&, const std::string&)':
tracker_input.cpp:28: error: 'atoll' was not declared in this scope
tracker_input.cpp:54: error: 'atoll' was not declared in this scope
tracker_input.cpp:68: error: 'atoll' was not declared in this scope
Original comment by [email protected]
on 28 Apr 2012 at 5:25
from xbt.
In what header is atoll declared on your platform?
Original comment by olafvdspek
on 28 Apr 2012 at 2:44
from xbt.
r2293
g++48 $@ -DNDEBUG -I ../misc -I . -O3 -o xbt_tracker -I /usr/local/include
-std=c++0x \
# ./make.sh
tracker_input.cpp: In member function 'void Ctracker_input::set(const string&,
const string&)':
tracker_input.cpp:28:38: error: 'atoll' was not declared in this scope
tracker_input.cpp:54:32: error: 'atoll' was not declared in this scope
tracker_input.cpp:68:36: error: 'atoll' was not declared in this scope
help please...
Original comment by [email protected]
on 30 Apr 2012 at 8:52
from xbt.
In what header is atoll declared on your platform?
Original comment by olafvdspek
on 30 Apr 2012 at 10:44
from xbt.
stdlib.h
Original comment by [email protected]
on 30 Apr 2012 at 11:03
from xbt.
Try to add #include <cstdlib> to stdafx.h
Original comment by olafvdspek
on 30 Apr 2012 at 11:04
from xbt.
#include <cstdlib>
or
#include <stdlib.h>
did not help
Original comment by [email protected]
on 30 Apr 2012 at 11:15
from xbt.
So atoll is *not* declared in stdlib.h?
In that case you'll have to find the right header.
Original comment by olafvdspek
on 30 Apr 2012 at 12:20
from xbt.
r2303
g++48 $@ -DNDEBUG -I ../misc -I . -O3 -o xbt_tracker -I /usr/local/include
-std=c++0x \
# ./make.sh
tracker_input.cpp: In member function 'void Ctracker_input::set(const string&,
const string&)':
tracker_input.cpp:28:38: error: 'atoll' was not declared in this scope
m_downloaded = atoll(value.c_str());
^
tracker_input.cpp:54:32: error: 'atoll' was not declared in this scope
m_left = atoll(value.c_str());
^
tracker_input.cpp:68:36: error: 'atoll' was not declared in this scope
m_uploaded = atoll(value.c_str());
^
Original comment by [email protected]
on 2 May 2012 at 5:32
from xbt.
Found the right header yet?
Original comment by olafvdspek
on 2 May 2012 at 5:34
from xbt.
http://en.cppreference.com/w/cpp/string/byte/atoi
long long atoll( const char *str ); (since C++11)
Original comment by [email protected]
on 2 May 2012 at 5:44
from xbt.
I have tried various connection options, different versions of g++(4.4 - 4.6 -
4.8)
all write that the atoll is registered in stdlib.h, and are placed it in:
/usr/include/
and
/usr/local/lib/gcc44/include/c++/tr1
and
/usr/local/lib/gcc44/gcc/x86_64-portbld-freebsd8.2/4.4.7/include-fixed
and
/usr/ports/lang/gcc44/work/build/gcc/include-fixed
and
/usr/ports/lang/gcc48/work/build/gcc/include-fixed
and
/usr/ports/lang/gcc46/work/build/gcc/include-fixed
I have no idea what to do and how to compile in the xbt freebsd :(
Original comment by [email protected]
on 2 May 2012 at 7:50
from xbt.
If you give me shell access I'll have a look.
Original comment by olafvdspek
on 2 May 2012 at 7:56
from xbt.
Original comment by olafvdspek
on 3 May 2012 at 9:18
- Changed state: Invalid
from xbt.
may be replace atoll to my_atoll? ))
long long my_atoll(char *instr)
{
long long retval;
int i;
retval = 0;
for (; *instr; instr++) {
retval = 10*retval + (*instr - '0');
}
return retval;
}
Original comment by [email protected]
on 6 May 2012 at 8:20
from xbt.
Why? You should just fix your platform.
Original comment by olafvdspek
on 6 May 2012 at 9:59
from xbt.
# ./make.sh
In file included from connection.cpp:5:0:
stdafx.h:3:0: warning: "FD_SETSIZE" redefined [enabled by default]
#define FD_SETSIZE 1024
^
In file included from
/usr/local/lib/gcc48/gcc/x86_64-portbld-freebsd9.0/4.8.1/include-fixed/sys/types
.h:287:0,
from connection.cpp:2:
/usr/include/sys/select.h:59:0: note: this is the location of the previous
definition
#define FD_SETSIZE 1024U
^
In file included from server.cpp:4:0:
stdafx.h:3:0: warning: "FD_SETSIZE" redefined [enabled by default]
#define FD_SETSIZE 1024
^
In file included from
/usr/local/lib/gcc48/gcc/x86_64-portbld-freebsd9.0/4.8.1/include-fixed/sys/types
.h:287:0,
from server.cpp:1:
/usr/include/sys/select.h:59:0: note: this is the location of the previous
definition
#define FD_SETSIZE 1024U
^
# uname -a
FreeBSD torrents.berislav.net.ua 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Fri Nov 2
15:44:15 EET 2012 [email protected]:/usr/obj/usr/src/sys/CS
amd64
Original comment by [email protected]
on 9 Jun 2013 at 7:41
from xbt.
Related Issues (20)
- Last revision not make HOT 4
- terminate called after throwing an instance of 'std::out_of_range' HOT 1
- configure xbt tracker ? HOT 2
- bt_seeders , bt_leechers, bt_completed in sql is updating as null HOT 1
- IPv6 time HOT 3
- FreeBSD 9.0 x64 HOT 10
- missing files svn HOT 1
- ./make.sh doesn't finish the job HOT 3
- Latest SVN don't build HOT 5
- CentOS r2397 HOT 3
- Only full scrapes are logged HOT 2
- cannot install - centos HOT 7
- error: ISO C++ forbids in-class initialization of non-const static member HOT 9
- Errors in compilation HOT 1
- xbt_tracker not compilable on Debian Squeeze HOT 17
- DHT & Peer Echange not allowed... HOT 1
- Possible to insert peers remotely HOT 2
- Error ffter revision "r2440" HOT 14
- has no member named ‘reserve’ HOT 4
- GitHub
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xbt.