02-09-2007
Did you try compiling it on the command line, e.g.
g++ test.cpp -c -o test.o
? Your pasted snippet works for me.
10 More Discussions You Might Find Interesting
1. Solaris
Hi,
My system is crashing with following error .. i tried to boot from the network and unencapsulated the root disk from SVM .. but still not able to boot the box , can any one point me to some direction .. i do not want to build the box new as of now just want to troubleshoot if possible..
... (3 Replies)
Discussion started by: fugitive
3 Replies
2. UNIX for Dummies Questions & Answers
im just trying to have some fun and kill some time writing a c++ program that has a person type in a car make and model then gives them a year and a price. or something like that. i always have problems getting it goin but once the ball is rolling im usually pretty good. anyone wanna help me out? ... (1 Reply)
Discussion started by: rickym2626
1 Replies
3. Red Hat
Using Fedora 11, just about every day the system started crashing.
Becomes unresponsive to keyboard/mouse, nothing appears on screen but box is still running.
Still responds to ping, arp address stays alive in the firewall, other than that its unresponsive
Where can I look to find out... (1 Reply)
Discussion started by: ippy98
1 Replies
4. Programming
Hi, i have a question about C++. Is it possible to declare a class with a member ot the same class? For example, a linked list or i want to convert this C code to C++ class (Elemento)
typedef struct elemento
{
char name;
char value;
List<struct elemento> ltElementos;
... (7 Replies)
Discussion started by: pogdorica
7 Replies
5. UNIX and Linux Applications
Firefox keeps on crashing every time I try to run it. I tried to create a new profile with no luck. When I try to open up the profile manager firefox crashes. I even deleted my profile folder and tried to start with a new profile. That did not work either. I don't know what the problem could be. I... (6 Replies)
Discussion started by: cokedude
6 Replies
6. Programming
Hi,
I believe the next code is wrong:
class Egg {
Egg e;
int i;
Egg(int ii=0) : i(ii) {}
};
because you would end up with an endless definition (memory allocation) of Egg objects, thus int i.
Ok, so God Eckel proposes for a singleton:
class Egg {
static Egg e;
int... (5 Replies)
Discussion started by: xavipoes
5 Replies
7. UNIX for Dummies Questions & Answers
Over the last month or so my CentOS server has been crashing for reasons I do not know. It has been running for over a year with regular yum updates without problems. The load on the server is perfectly normal with CPU usage at 5-6% and RAM usage at less than half of 32GB of RAM (multiple smaller... (3 Replies)
Discussion started by: spinner0205
3 Replies
8. UNIX for Advanced & Expert Users
Hi all!
I am trying to register a device in an existing device class, but I am
having trouble getting the pointer to an existing class.
I can create a class in a module, get the pointer to it and then use
it to register the device with:
*cl = class_create(THIS_MODULE, className);... (0 Replies)
Discussion started by: hdaniel@ualg.pt
0 Replies
9. Programming
I have the two class definition as follows.
class A { public: int a; };
class B : virtual public A{ };
The size of class A is shown as 4, and size of class B is shown as 16. Why is this effect ?. (2 Replies)
Discussion started by: techmonk
2 Replies
10. Programming
Hello All,
I am a learner in C++. I was testing my inheritance knowledge with following piece of code.
#include <iostream>
using namespace std;
class base
{
public :
void display()
{
cout << "In base display()" << endl;
}
void display(int k)
{... (2 Replies)
Discussion started by: anand.shah
2 Replies
LEARN ABOUT PHP
reflectionproperty
REFLECTIONPROPERTY(3) 1 REFLECTIONPROPERTY(3)
The ReflectionProperty class
INTRODUCTION
The ReflectionProperty class reports information about classes properties.
CLASS SYNOPSIS
ReflectionProperty
ReflectionPropertyReflector
Constants
o const integer$ReflectionProperty::IS_STATIC1
o const integer$ReflectionProperty::IS_PUBLIC256
o const integer$ReflectionProperty::IS_PROTECTED512
o const integer$ReflectionProperty::IS_PRIVATE1024
Properties
o public$name
o public$class
Methods
o finalprivate void ReflectionProperty::__clone (void )
o public ReflectionProperty::__construct (mixed $class, string $name)
o publicstatic string ReflectionProperty::export (mixed $class, string $name, [bool $return])
o public ReflectionClass ReflectionProperty::getDeclaringClass (void )
o public string ReflectionProperty::getDocComment (void )
o public int ReflectionProperty::getModifiers (void )
o public string ReflectionProperty::getName (void )
o public mixed ReflectionProperty::getValue ([object $object])
o public bool ReflectionProperty::isDefault (void )
o public bool ReflectionProperty::isPrivate (void )
o public bool ReflectionProperty::isProtected (void )
o public bool ReflectionProperty::isPublic (void )
o public bool ReflectionProperty::isStatic (void )
o public void ReflectionProperty::setAccessible (bool $accessible)
o public void ReflectionProperty::setValue (object $object, mixed $value)
o public string ReflectionProperty::__toString (void )
PROPERTIES
o $name
- Name of the property. Read-only, throws ReflectionException in attempt to write.
o $class
- Name of the class where the property is defined. Read-only, throws ReflectionException in attempt to write.
PREDEFINED CONSTANTS
REFLECTIONPROPERTY MODIFIERS
o ReflectionProperty::IS_STATIC - Indicates static properties.
o ReflectionProperty::IS_PUBLIC - Indicates public properties.
o ReflectionProperty::IS_PROTECTED - Indicates protected properties.
o ReflectionProperty::IS_PRIVATE - Indicates private properties.
PHP Documentation Group REFLECTIONPROPERTY(3)