Android_808
|
2012-02-10
, 14:11
|
Posts: 1,203 |
Thanked: 3,027 times |
Joined on Dec 2010
|
#21
|
The Following User Says Thank You to Android_808 For This Useful Post: | ||
|
2012-02-10
, 23:07
|
Posts: 839 |
Thanked: 3,386 times |
Joined on Mar 2009
|
#22
|
|
2012-02-11
, 00:53
|
Posts: 560 |
Thanked: 422 times |
Joined on Mar 2011
|
#23
|
// header class A { A(); int aBoo(); //inline implemenation ~A(); };
// implementation #include <iostream> A::A() { // make 'A' type objects } inline int A::aBoo() // inline functon { std::cout << "boo" << std::endl; return 0; } ~A::A() { // kill 'A' type objects; }
|
2012-02-11
, 03:12
|
Posts: 2,076 |
Thanked: 3,268 times |
Joined on Feb 2011
|
#24
|
|
2012-02-11
, 22:51
|
Posts: 839 |
Thanked: 3,386 times |
Joined on Mar 2009
|
#25
|
Are we allowed to use inline to write code for Maemo5? Maybe I'm missing your point?
The Following 3 Users Say Thank You to AapoRantalainen For This Useful Post: | ||
|
2012-02-12
, 17:29
|
Posts: 1,203 |
Thanked: 3,027 times |
Joined on Dec 2010
|
#26
|
So far it seems that -lm is needed in place where earlier doesn't needed.
About multiple definition of `gnu_dev_major' etc. It is not warning, but error.
I found this post which I think be the most relevant:
http://us.generation-nt.com/answer/g...170398461.html
The glibc support for the C99 inline semantics was added in glibc 2.6 (via
a large 2007-03-16 patch of Jakub's and some followups), and 2.6 is also
the version where all the non-TLS support was removed. GCC 4.3 and later
use C99 inline semantics in -std=gnu99 mode. To use any earlier version
of glibc with GCC 4.3 you need at least to backport the large patch.
Joseph S. Myers
The Following 4 Users Say Thank You to Android_808 For This Useful Post: | ||
|
2012-02-15
, 15:09
|
Posts: 839 |
Thanked: 3,386 times |
Joined on Mar 2009
|
#27
|
If it works, why not.
...
some versions require -lm to be in a certain place in command sequence or it could be because a default flag in the linker.
|
2012-02-16
, 03:27
|
Posts: 2,225 |
Thanked: 3,822 times |
Joined on Jun 2010
@ Florida
|
#28
|
|
2012-02-16
, 18:46
|
Posts: 839 |
Thanked: 3,386 times |
Joined on Mar 2009
|
#29
|
The Following 4 Users Say Thank You to AapoRantalainen For This Useful Post: | ||
|
2012-02-16
, 19:03
|
Posts: 1,203 |
Thanked: 3,027 times |
Joined on Dec 2010
|
#30
|