|
|
02-10-2012
, 10:11 AM
|
|
Posts: 305 |
Thanked: 340 times |
Joined on Dec 2010
|
#21
|
| The Following User Says Thank You to Android_808 For This Useful Post: | ||
|
|
02-10-2012
, 07:07 PM
|
|
Posts: 623 |
Thanked: 2,136 times |
Joined on Mar 2009
|
#22
|
|
|
02-10-2012
, 08:53 PM
|
|
Posts: 560 |
Thanked: 406 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;
}
|
|
02-10-2012
, 11:12 PM
|
|
Posts: 954 |
Thanked: 926 times |
Joined on Feb 2011
|
#24
|
|
|
02-11-2012
, 06:51 PM
|
|
Posts: 623 |
Thanked: 2,136 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: | ||
|
|
02-12-2012
, 01:29 PM
|
|
Posts: 305 |
Thanked: 340 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: | ||
|
|
02-15-2012
, 11:09 AM
|
|
Posts: 623 |
Thanked: 2,136 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.
|
|
02-15-2012
, 11:27 PM
|
|
Posts: 1,983 |
Thanked: 2,975 times |
Joined on Jun 2010
@ Florida
|
#28
|
|
|
02-16-2012
, 02:46 PM
|
|
Posts: 623 |
Thanked: 2,136 times |
Joined on Mar 2009
|
#29
|
| The Following 4 Users Say Thank You to AapoRantalainen For This Useful Post: | ||
|
|
02-16-2012
, 03:03 PM
|
|
Posts: 305 |
Thanked: 340 times |
Joined on Dec 2010
|
#30
|
![]() |
| Thread Tools | Search this Thread |
|