Errors compiling C++ sample code

I’m working in C++, and get errors trying to compile using g++.

I’m using Ubuntu Studio 10.10 x64 (No interest in Windoze)
python 2.6.6
g++ 4.4.5

I compiled Panda3D using: makepanda/makepanda.py --everything --installer and dpkg -i panda3d*amd64.deb; so I assume my python and complier version is being used; if not; well this explains a lot.

I tested the samples, and I wrote a few test Python scripts, they run fine, so I assume its installed correctly.

I got warnings stating: Could not locate thirdparty package artoolkit, excluding from build (for: fcollada,fmodex,gles,gles2,egl,ode,squish,vrpn); I could not find download for thirdparty (where do I get it?).

Command Line:
g++ -m64 -c -g -I/usr/include/panda3d -I/usr/include/panda3d/parser-inc -I/usr/include/python2.6 -MMD -MP -MF build/Debug/GNU-Linux-x86/main.o.d -o build/Debug/GNU-Linux-x86/main.o main.cpp

Errors: Way too many to list here; but here are a couple:
/usr/include/panda3d/parser-inc/stdtypedefs.h:24: error: conflicting declaration ‘typedef int ssize_t’
/usr/include/panda3d/vector_string.h:38: error: expected declaration before end of line

I tried using Netbeans and Eclipse; with same errors.

New to Panda3D; over 30 years of programming experance; so I’m not a newbe.

Did I mention I love this program; what Blender head wouldn’t.

Thanks for any help.

Don’t include the parser-inc directory on the compilation line. The files in that directory are not true header files; they are only stubs to satisfy interrogate, the C++ parser that generates Python interfaces.

David

This is a sample I found of the Tea Pot and Panda in C++; if I remove the parser-inc; I still get errors; I added it in trying to resolve dependencies in framework; if there wasn’t any, it wouldn’t matter.

I have assumed that this code works; maybe this is my whole problem; can anyone confirm this?

#include <pandaFramework.h>
#include <pandaSystem.h>
#include <animControlCollection.h>
#include <auto_bind.h>

PandaFramework framework;

int main(int argc, char* argv[])
{
framework.open_framework(argc, argv);
WindowFramework* win = framework.open_window();
NodePath camera = win->get_camera_group();

NodePath teapot = win->load_model(framework.get_models(), "teapot");
teapot.reparent_to(win->get_render());
teapot.set_pos(-5, 0, 0);

NodePath panda = win->load_model(framework.get_models(), "panda");
panda.reparent_to(win->get_render());
panda.set_pos(5, 0, 0);

win->load_model(panda, "panda-walk");
AnimControlCollection pandaAnims;
auto_bind(panda.node(), pandaAnims);
pandaAnims.loop("panda_soft", false);

camera.set_pos(0, -30, 6);

framework.main_loop();
framework.close_framework();
return 0;

}

What errors did you get?

I don’t like posting this much info; but here it is:

In file included from /usr/include/panda3d/parser-inc/stddef.h:23,
from /usr/include/sys/types.h:147,
from /usr/include/panda3d/dtoolbase.h:129,
from /usr/include/panda3d/pandabase.h:22,
from /usr/include/panda3d/pandaFramework.h:18,
from main.cpp:1:
/usr/include/panda3d/parser-inc/stdtypedefs.h:24: error: conflicting declaration ‘typedef int ssize_t’
/usr/include/sys/types.h:110: error: ‘ssize_t’ has a previous declaration as ‘typedef __ssize_t ssize_t’
/usr/include/panda3d/parser-inc/stdtypedefs.h:25: error: conflicting declaration ‘typedef int off_t’
/usr/include/sys/types.h:87: error: ‘off_t’ has a previous declaration as ‘typedef __off_t off_t’
/usr/include/panda3d/parser-inc/stdtypedefs.h:26: error: conflicting declaration ‘typedef unsigned int time_t’
/usr/include/time.h:76: error: ‘time_t’ has a previous declaration as ‘typedef __time_t time_t’
/usr/include/panda3d/parser-inc/stdtypedefs.h:27: error: conflicting declaration ‘typedef int clock_t’
/usr/include/time.h:60: error: ‘clock_t’ has a previous declaration as ‘typedef __clock_t clock_t’
In file included from /usr/include/sys/types.h:220,
from /usr/include/panda3d/dtoolbase.h:129,
from /usr/include/panda3d/pandabase.h:22,
from /usr/include/panda3d/pandaFramework.h:18,
from main.cpp:1:
/usr/include/sys/select.h:78: error: conflicting declaration ‘typedef struct fd_set fd_set’
/usr/include/panda3d/parser-inc/stdtypedefs.h:43: error: ‘fd_set’ has a previous declaration as ‘typedef int fd_set’
In file included from /usr/include/panda3d/dtoolbase_cc.h:49,
from /usr/include/panda3d/dtoolbase.h:349,
from /usr/include/panda3d/pandabase.h:22,
from /usr/include/panda3d/pandaFramework.h:18,
from main.cpp:1:
/usr/include/panda3d/parser-inc/iostream:32: error: expected primary-expression before ‘enum’
/usr/include/panda3d/parser-inc/iostream:32: error: ISO C++ forbids declaration of ‘__published’ with no type
/usr/include/panda3d/parser-inc/iostream:32: error: expected ‘;’ before ‘enum’
/usr/include/panda3d/parser-inc/iostream:42: error: expected primary-expression before ‘typedef’
/usr/include/panda3d/parser-inc/iostream:42: error: ISO C++ forbids declaration of ‘__published’ with no type
/usr/include/panda3d/parser-inc/iostream:42: error: expected ‘;’ before ‘typedef’
/usr/include/panda3d/parser-inc/iostream:54: error: expected primary-expression before ‘void’
/usr/include/panda3d/parser-inc/iostream:54: error: ISO C++ forbids declaration of ‘__published’ with no type
/usr/include/panda3d/parser-inc/iostream:54: error: expected ‘;’ before ‘void’
/usr/include/panda3d/parser-inc/iostream:43: error: ‘typedef long unsigned int ios::streampos’ is private
/usr/include/panda3d/parser-inc/iostream:56: error: within this context
/usr/include/panda3d/parser-inc/iostream:43: error: ‘typedef long unsigned int ios::streampos’ is private
/usr/include/panda3d/parser-inc/iostream:57: error: within this context
/usr/include/panda3d/parser-inc/iostream:44: error: ‘typedef long int ios::streamoff’ is private
/usr/include/panda3d/parser-inc/iostream:58: error: within this context
/usr/include/panda3d/parser-inc/iostream:58: error: ‘ios_base::seekdir’ has not been declared
/usr/include/panda3d/parser-inc/iostream:62: error: expected primary-expression before ‘int’
/usr/include/panda3d/parser-inc/iostream:62: error: ISO C++ forbids declaration of ‘__published’ with no type
/usr/include/panda3d/parser-inc/iostream:62: error: expected ‘;’ before ‘int’
/usr/include/panda3d/parser-inc/iostream:43: error: ‘typedef long unsigned int ios::streampos’ is private
/usr/include/panda3d/parser-inc/iostream:63: error: within this context
/usr/include/panda3d/parser-inc/iostream:43: error: ‘typedef long unsigned int ios::streampos’ is private
/usr/include/panda3d/parser-inc/iostream:64: error: within this context
/usr/include/panda3d/parser-inc/iostream:44: error: ‘typedef long int ios::streamoff’ is private
/usr/include/panda3d/parser-inc/iostream:65: error: within this context
/usr/include/panda3d/parser-inc/iostream:65: error: ‘ios_base::seekdir’ has not been declared
/usr/include/panda3d/parser-inc/iostream:69: error: expected primary-expression before ‘void’
/usr/include/panda3d/parser-inc/iostream:69: error: ISO C++ forbids declaration of ‘__published’ with no type
/usr/include/panda3d/parser-inc/iostream:69: error: expected ‘;’ before ‘void’
/usr/include/panda3d/parser-inc/iostream:74: error: invalid use of incomplete type ‘class ofstream’
/usr/include/panda3d/parser-inc/iostream:72: error: forward declaration of ‘class ofstream’
/usr/include/panda3d/parser-inc/iostream:74: error: ISO C++ forbids declaration of ‘__published’ with no type
/usr/include/panda3d/parser-inc/iostream:79: error: invalid use of incomplete type ‘class ifstream’
/usr/include/panda3d/parser-inc/iostream:77: error: forward declaration of ‘class ifstream’
/usr/include/panda3d/parser-inc/iostream:79: error: ISO C++ forbids declaration of ‘__published’ with no type
/usr/include/panda3d/parser-inc/iostream:84: error: invalid use of incomplete type ‘class fstream’
/usr/include/panda3d/parser-inc/iostream:82: error: forward declaration of ‘class fstream’
/usr/include/panda3d/parser-inc/iostream:84: error: ISO C++ forbids declaration of ‘__published’ with no type
In file included from /usr/include/wchar.h:37,
from /usr/include/c++/4.4/cwchar:47,
from /usr/include/c++/4.4/bits/postypes.h:42,
from /usr/include/c++/4.4/iosfwd:42,
from /usr/include/c++/4.4/ios:39,
from /usr/include/c++/4.4/istream:40,
from /usr/include/c++/4.4/fstream:40,
from /usr/include/panda3d/dtoolbase_cc.h:50,
from /usr/include/panda3d/dtoolbase.h:349,
from /usr/include/panda3d/pandabase.h:22,
from /usr/include/panda3d/pandaFramework.h:18,
from main.cpp:1:
/usr/include/stdio.h:49: error: conflicting declaration ‘typedef struct _IO_FILE FILE’
/usr/include/panda3d/parser-inc/stdtypedefs.h:29: error: ‘struct FILE’ has a previous declaration as ‘struct FILE’
In file included from /usr/include/c++/4.4/bits/localefwd.h:44,
from /usr/include/c++/4.4/ios:42,
from /usr/include/c++/4.4/istream:40,
from /usr/include/c++/4.4/fstream:40,
from /usr/include/panda3d/dtoolbase_cc.h:50,
from /usr/include/panda3d/dtoolbase.h:349,
from /usr/include/panda3d/pandabase.h:22,
from /usr/include/panda3d/pandaFramework.h:18,
from main.cpp:1:
/usr/include/c++/4.4/cctype:66: error: ‘::isalnum’ has not been declared
/usr/include/c++/4.4/cctype:67: error: ‘::isalpha’ has not been declared
/usr/include/c++/4.4/cctype:68: error: ‘::iscntrl’ has not been declared
/usr/include/c++/4.4/cctype:69: error: ‘::isdigit’ has not been declared
/usr/include/c++/4.4/cctype:70: error: ‘::isgraph’ has not been declared
/usr/include/c++/4.4/cctype:71: error: ‘::islower’ has not been declared
/usr/include/c++/4.4/cctype:72: error: ‘::isprint’ has not been declared
/usr/include/c++/4.4/cctype:73: error: ‘::ispunct’ has not been declared
/usr/include/c++/4.4/cctype:74: error: ‘::isspace’ has not been declared
/usr/include/c++/4.4/cctype:75: error: ‘::isupper’ has not been declared
/usr/include/c++/4.4/cctype:76: error: ‘::isxdigit’ has not been declared
/usr/include/c++/4.4/cctype:77: error: ‘::tolower’ has not been declared
/usr/include/c++/4.4/cctype:78: error: ‘::toupper’ has not been declared
In file included from /usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:41,
from /usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr.h:162,
from /usr/include/c++/4.4/ext/atomicity.h:34,
from /usr/include/c++/4.4/bits/ios_base.h:41,
from /usr/include/c++/4.4/ios:43,
from /usr/include/c++/4.4/istream:40,
from /usr/include/c++/4.4/fstream:40,
from /usr/include/panda3d/dtoolbase_cc.h:50,
from /usr/include/panda3d/dtoolbase.h:349,
from /usr/include/panda3d/pandabase.h:22,
from /usr/include/panda3d/pandaFramework.h:18,
from main.cpp:1:
/usr/include/panda3d/parser-inc/pthread.h:23: error: conflicting declaration ‘typedef int pthread_t’
/usr/include/bits/pthreadtypes.h:50: error: ‘pthread_t’ has a previous declaration as ‘typedef long unsigned int pthread_t’
/usr/include/panda3d/parser-inc/pthread.h:24: error: conflicting declaration ‘typedef int pthread_key_t’
/usr/include/bits/pthreadtypes.h:140: error: ‘pthread_key_t’ has a previous declaration as ‘typedef unsigned int pthread_key_t’
/usr/include/panda3d/parser-inc/pthread.h:25: error: conflicting declaration ‘typedef int pthread_mutex_t’
/usr/include/bits/pthreadtypes.h:104: error: ‘pthread_mutex_t’ has a previous declaration as ‘typedef union pthread_mutex_t pthread_mutex_t’
/usr/include/panda3d/parser-inc/pthread.h:26: error: conflicting declaration ‘typedef int pthread_cond_t’
/usr/include/bits/pthreadtypes.h:130: error: ‘pthread_cond_t’ has a previous declaration as ‘typedef union pthread_cond_t pthread_cond_t’
In file included from /usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr.h:162,
from /usr/include/c++/4.4/ext/atomicity.h:34,
from /usr/include/c++/4.4/bits/ios_base.h:41,
from /usr/include/c++/4.4/ios:43,
from /usr/include/c++/4.4/istream:40,
from /usr/include/c++/4.4/fstream:40,
from /usr/include/panda3d/dtoolbase_cc.h:50,
from /usr/include/panda3d/dtoolbase.h:349,
from /usr/include/panda3d/pandabase.h:22,
from /usr/include/panda3d/pandaFramework.h:18,
from main.cpp:1:
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:118: error: ‘pthread_once’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:118: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:119: error: ‘pthread_getspecific’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:119: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:120: error: ‘pthread_setspecific’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:120: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:122: error: ‘pthread_create’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:122: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:123: error: ‘pthread_join’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:123: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:124: error: ‘pthread_equal’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:124: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:125: error: ‘pthread_self’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:125: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:126: error: ‘pthread_detach’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:126: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:127: error: ‘pthread_cancel’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:127: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:128: error: ‘sched_yield’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:128: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:130: error: ‘pthread_mutex_lock’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:130: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:131: error: ‘pthread_mutex_trylock’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:131: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:134: error: ‘pthread_mutex_timedlock’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:134: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:137: error: ‘pthread_mutex_unlock’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:137: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:138: error: ‘pthread_mutex_init’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:138: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:139: error: ‘pthread_mutex_destroy’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:139: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:141: error: ‘pthread_cond_broadcast’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:141: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:142: error: ‘pthread_cond_signal’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:142: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:143: error: ‘pthread_cond_wait’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:143: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:144: error: ‘pthread_cond_timedwait’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:144: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:145: error: ‘pthread_cond_destroy’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:145: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:148: error: ‘pthread_key_create’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:148: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:149: error: ‘pthread_key_delete’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:149: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:150: error: ‘pthread_mutexattr_init’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:150: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:151: error: ‘pthread_mutexattr_settype’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:151: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:152: error: ‘pthread_mutexattr_destroy’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:152: error: invalid type in declaration before ‘;’ token
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h: In function ‘int __gthread_create(__gthread_t*, void* ()(void), void*)’:
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:679: error: ‘__gthrw_pthread_create’ cannot be used as a function
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h: In function ‘int __gthread_join(__gthread_t, void**)’:
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:685: error: ‘__gthrw_pthread_join’ cannot be used as a function
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h: In function ‘int __gthread_detach(__gthread_t)’:
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:691: error: ‘__gthrw_pthread_detach’ cannot be used as a function
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h: In function ‘int __gthread_equal(__gthread_t, __gthread_t)’:
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:697: error: ‘__gthrw_pthread_equal’ cannot be used as a function
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h: In function ‘__gthread_t __gthread_self()’:
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:703: error: ‘__gthrw_pthread_self’ cannot be used as a function
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h: In function ‘int __gthread_yield()’:
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:709: error: ‘__gthrw_sched_yield’ cannot be used as a function
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h: In function ‘int __gthread_once(__gthread_once_t*, void ()())’:
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:716: error: ‘__gthrw_pthread_once’ cannot be used as a function
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h: In function ‘int __gthread_key_create(__gthread_key_t
, void ()(void))’:
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:724: error: ‘__gthrw_pthread_key_create’ cannot be used as a function
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h: In function ‘int __gthread_key_delete(__gthread_key_t)’:
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:730: error: ‘__gthrw_pthread_key_delete’ cannot be used as a function
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h: In function ‘void* __gthread_getspecific(__gthread_key_t)’:
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:736: error: ‘__gthrw_pthread_getspecific’ cannot be used as a function
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h: In function ‘int __gthread_setspecific(__gthread_key_t, const void*)’:
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:742: error: ‘__gthrw_pthread_setspecific’ cannot be used as a function
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h: In function ‘int __gthread_mutex_destroy(__gthread_mutex_t*)’:
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:749: error: ‘__gthrw_pthread_mutex_destroy’ cannot be used as a function
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h: In function ‘int __gthread_mutex_lock(__gthread_mutex_t*)’:
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:758: error: ‘__gthrw_pthread_mutex_lock’ cannot be used as a function
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h: In function ‘int __gthread_mutex_trylock(__gthread_mutex_t*)’:
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:767: error: ‘__gthrw_pthread_mutex_trylock’ cannot be used as a function
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h: In function ‘int __gthread_mutex_timedlock(__gthread_mutex_t*, const __gthread_time_t*)’:
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:779: error: ‘__gthrw_pthread_mutex_timedlock’ cannot be used as a function
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h: In function ‘int __gthread_mutex_unlock(__gthread_mutex_t*)’:
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:790: error: ‘__gthrw_pthread_mutex_unlock’ cannot be used as a function
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h: In function ‘int __gthread_recursive_mutex_init_function(__gthread_recursive_mutex_t*)’:
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:804: error: ‘__gthrw_pthread_mutexattr_init’ cannot be used as a function
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:807: error: ‘PTHREAD_MUTEX_RECURSIVE’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:807: error: ‘__gthrw_pthread_mutexattr_settype’ cannot be used as a function
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:809: error: ‘__gthrw_pthread_mutex_init’ cannot be used as a function
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:811: error: ‘__gthrw_pthread_mutexattr_destroy’ cannot be used as a function
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h: In function ‘int __gthread_cond_broadcast(__gthread_cond_t*)’:
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:850: error: ‘__gthrw_pthread_cond_broadcast’ cannot be used as a function
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h: In function ‘int __gthread_cond_signal(__gthread_cond_t*)’:
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:856: error: ‘__gthrw_pthread_cond_signal’ cannot be used as a function
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h: In function ‘int __gthread_cond_wait(__gthread_cond_t*, __gthread_mutex_t*)’:
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:862: error: ‘__gthrw_pthread_cond_wait’ cannot be used as a function
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h: In function ‘int __gthread_cond_timedwait(__gthread_cond_t*, __gthread_mutex_t*, const __gthread_time_t*)’:
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:869: error: ‘__gthrw_pthread_cond_timedwait’ cannot be used as a function
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h: In function ‘int __gthread_cond_destroy(__gthread_cond_t*)’:
/usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:890: error: ‘__gthrw_pthread_cond_destroy’ cannot be used as a function
In file included from /usr/include/c++/4.4/ios:43,
from /usr/include/c++/4.4/istream:40,
from /usr/include/c++/4.4/fstream:40,
from /usr/include/panda3d/dtoolbase_cc.h:50,
from /usr/include/panda3d/dtoolbase.h:349,
from /usr/include/panda3d/pandabase.h:22,
from /usr/include/panda3d/pandaFramework.h:18,
from main.cpp:1:
/usr/include/c++/4.4/bits/ios_base.h: At global scope:
/usr/include/c++/4.4/bits/ios_base.h:234: error: field ‘_M_msg’ has incomplete type
In file included from /usr/include/c++/4.4/bits/locale_facets.h:43,
from /usr/include/c++/4.4/bits/basic_ios.h:39,
from /usr/include/c++/4.4/ios:45,
from /usr/include/c++/4.4/istream:40,
from /usr/include/c++/4.4/fstream:40,
from /usr/include/panda3d/dtoolbase_cc.h:50,
from /usr/include/panda3d/dtoolbase.h:349,
from /usr/include/panda3d/pandabase.h:22,
from /usr/include/panda3d/pandaFramework.h:18,
from main.cpp:1:
/usr/include/c++/4.4/x86_64-linux-gnu/bits/ctype_base.h:48: error: ‘_ISupper’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/ctype_base.h:49: error: ‘_ISlower’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/ctype_base.h:50: error: ‘_ISalpha’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/ctype_base.h:51: error: ‘_ISdigit’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/ctype_base.h:52: error: ‘_ISxdigit’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/ctype_base.h:53: error: ‘_ISspace’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/ctype_base.h:54: error: ‘_ISprint’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/ctype_base.h:55: error: ‘_ISalpha’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/ctype_base.h:55: error: ‘_ISdigit’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/ctype_base.h:55: error: ‘_ISpunct’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/ctype_base.h:56: error: ‘_IScntrl’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/ctype_base.h:57: error: ‘_ISpunct’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/ctype_base.h:58: error: ‘_ISalpha’ was not declared in this scope
/usr/include/c++/4.4/x86_64-linux-gnu/bits/ctype_base.h:58: error: ‘_ISdigit’ was not declared in this scope
In file included from /usr/include/c++/4.4/bits/basic_ios.h:39,
from /usr/include/c++/4.4/ios:45,
from /usr/include/c++/4.4/istream:40,
from /usr/include/c++/4.4/fstream:40,
from /usr/include/panda3d/dtoolbase_cc.h:50,
from /usr/include/panda3d/dtoolbase.h:349,
from /usr/include/panda3d/pandabase.h:22,
from /usr/include/panda3d/pandaFramework.h:18,
from main.cpp:1:
/usr/include/c++/4.4/bits/locale_facets.h: In member function ‘std::string std::numpunct<_CharT>::grouping() const’:
/usr/include/c++/4.4/bits/locale_facets.h:1746: error: return type ‘struct std::string’ is incomplete
/usr/include/c++/4.4/bits/locale_facets.h: In member function ‘virtual std::string std::numpunct<_CharT>::do_grouping() const’:
/usr/include/c++/4.4/bits/locale_facets.h:1814: error: return type ‘struct std::string’ is incomplete
In file included from /usr/include/c++/4.4/bits/locale_facets.h:2599,
from /usr/include/c++/4.4/bits/basic_ios.h:39,
from /usr/include/c++/4.4/ios:45,
from /usr/include/c++/4.4/istream:40,
from /usr/include/c++/4.4/fstream:40,
from /usr/include/panda3d/dtoolbase_cc.h:50,
from /usr/include/panda3d/dtoolbase.h:349,
from /usr/include/panda3d/pandabase.h:22,
from /usr/include/panda3d/pandaFramework.h:18,
from main.cpp:1:
/usr/include/c++/4.4/bits/locale_facets.tcc: In member function ‘_InIter std::num_get<_CharT, _InIter>::_M_extract_float(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, std::string&) const’:
/usr/include/c++/4.4/bits/locale_facets.tcc:192: error: invalid use of incomplete type ‘struct std::string’
/usr/include/c++/4.4/bits/stringfwd.h:52: error: declaration of ‘struct std::string’
/usr/include/c++/4.4/bits/locale_facets.tcc:263: error: invalid use of incomplete type ‘struct std::basic_string<char, std::char_traits, std::allocator >’
/usr/include/c++/4.4/bits/stringfwd.h:52: error: declaration of ‘struct std::basic_string<char, std::char_traits, std::allocator >’
/usr/include/c++/4.4/bits/locale_facets.tcc:277: error: invalid use of incomplete type ‘struct std::string’
/usr/include/c++/4.4/bits/stringfwd.h:52: error: declaration of ‘struct std::string’
/usr/include/c++/4.4/bits/locale_facets.tcc:300: error: invalid use of incomplete type ‘struct std::string’
/usr/include/c++/4.4/bits/stringfwd.h:52: error: declaration of ‘struct std::string’
/usr/include/c++/4.4/bits/locale_facets.tcc:336: error: invalid use of incomplete type ‘struct std::string’
/usr/include/c++/4.4/bits/stringfwd.h:52: error: declaration of ‘struct std::string’
/usr/include/c++/4.4/bits/locale_facets.tcc: In member function ‘_InIter std::num_get<_CharT, _InIter>::_M_extract_int(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, _ValueT&) const’:
/usr/include/c++/4.4/bits/locale_facets.tcc:448: error: invalid use of incomplete type ‘struct std::string’
/usr/include/c++/4.4/bits/stringfwd.h:52: error: declaration of ‘struct std::string’
/usr/include/c++/4.4/bits/locale_facets.tcc:534: error: invalid use of incomplete type ‘struct std::string’
/usr/include/c++/4.4/bits/stringfwd.h:52: error: declaration of ‘struct std::string’
/usr/include/c++/4.4/bits/locale_facets.tcc:547: error: invalid use of incomplete type ‘struct std::string’
/usr/include/c++/4.4/bits/stringfwd.h:52: error: declaration of ‘struct std::string’
/usr/include/c++/4.4/bits/locale_facets.tcc: In member function ‘virtual _InIter std::num_get<_CharT, _InIter>::do_get(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, float&) const’:
/usr/include/c++/4.4/bits/locale_facets.tcc:675: error: invalid use of incomplete type ‘struct std::string’
/usr/include/c++/4.4/bits/stringfwd.h:52: error: declaration of ‘struct std::string’
/usr/include/c++/4.4/bits/locale_facets.tcc:677: error: invalid use of incomplete type ‘struct std::string’
/usr/include/c++/4.4/bits/stringfwd.h:52: error: declaration of ‘struct std::string’
/usr/include/c++/4.4/bits/locale_facets.tcc: In member function ‘virtual _InIter std::num_get<_CharT, _InIter>::do_get(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, double&) const’:
/usr/include/c++/4.4/bits/locale_facets.tcc:690: error: invalid use of incomplete type ‘struct std::string’
/usr/include/c++/4.4/bits/stringfwd.h:52: error: declaration of ‘struct std::string’
/usr/include/c++/4.4/bits/locale_facets.tcc:692: error: invalid use of incomplete type ‘struct std::string’
/usr/include/c++/4.4/bits/stringfwd.h:52: error: declaration of ‘struct std::string’
/usr/include/c++/4.4/bits/locale_facets.tcc: In member function ‘virtual _InIter std::num_get<_CharT, _InIter>::do_get(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, long double&) const’:
/usr/include/c++/4.4/bits/locale_facets.tcc:722: error: invalid use of incomplete type ‘struct std::string’
/usr/include/c++/4.4/bits/stringfwd.h:52: error: declaration of ‘struct std::string’
/usr/include/c++/4.4/bits/locale_facets.tcc:724: error: invalid use of incomplete type ‘struct std::string’
/usr/include/c++/4.4/bits/stringfwd.h:52: error: declaration of ‘struct std::string’
In file included from /usr/include/panda3d/dtoolbase_cc.h:59,
from /usr/include/panda3d/dtoolbase.h:349,
from /usr/include/panda3d/pandabase.h:22,
from /usr/include/panda3d/pandaFramework.h:18,
from main.cpp:1:
/usr/include/c++/4.4/sstream: At global scope:
/usr/include/c++/4.4/sstream: In instantiation of ‘std::basic_stringbuf<char, std::char_traits, std::allocator >’:
/usr/include/c++/4.4/bits/sstream.tcc:258: instantiated from here
/usr/include/c++/4.4/sstream:73: error: invalid use of incomplete type ‘struct std::basic_string<char, std::char_traits, std::allocator >’
/usr/include/c++/4.4/bits/stringfwd.h:52: error: declaration of ‘struct std::basic_string<char, std::char_traits, std::allocator >’
/usr/include/c++/4.4/sstream:80: error: ‘std::basic_stringbuf<_CharT, _Traits, _Alloc>::_M_string’ has incomplete type
/usr/include/c++/4.4/bits/stringfwd.h:52: error: declaration of ‘struct std::basic_string<char, std::char_traits, std::allocator >’
In file included from /usr/include/c++/4.4/sstream:573,
from /usr/include/panda3d/dtoolbase_cc.h:59,
from /usr/include/panda3d/dtoolbase.h:349,
from /usr/include/panda3d/pandabase.h:22,
from /usr/include/panda3d/pandaFramework.h:18,
from main.cpp:1:
/usr/include/c++/4.4/bits/sstream.tcc:224: error: invalid use of incomplete type ‘struct std::basic_string<char, std::char_traits, std::allocator >’
/usr/include/c++/4.4/bits/stringfwd.h:52: error: declaration of ‘struct std::basic_string<char, std::char_traits, std::allocator >’
In file included from /usr/include/panda3d/dtoolbase_cc.h:59,
from /usr/include/panda3d/dtoolbase.h:349,
from /usr/include/panda3d/pandabase.h:22,
from /usr/include/panda3d/pandaFramework.h:18,
from main.cpp:1:
/usr/include/c++/4.4/sstream: In instantiation of ‘std::basic_stringbuf<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >’:
/usr/include/c++/4.4/bits/sstream.tcc:264: instantiated from here
/usr/include/c++/4.4/sstream:73: error: invalid use of incomplete type ‘struct std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >’
/usr/include/c++/4.4/bits/stringfwd.h:52: error: declaration of ‘struct std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >’
/usr/include/c++/4.4/sstream:80: error: ‘std::basic_stringbuf<_CharT, _Traits, _Alloc>::_M_string’ has incomplete type
/usr/include/c++/4.4/bits/stringfwd.h:52: error: declaration of ‘struct std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >’
In file included from /usr/include/c++/4.4/sstream:573,
from /usr/include/panda3d/dtoolbase_cc.h:59,
from /usr/include/panda3d/dtoolbase.h:349,
from /usr/include/panda3d/pandabase.h:22,
from /usr/include/panda3d/pandaFramework.h:18,
from main.cpp:1:
/usr/include/c++/4.4/bits/sstream.tcc:224: error: invalid use of incomplete type ‘struct std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >’
/usr/include/c++/4.4/bits/stringfwd.h:52: error: declaration of ‘struct std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >’
In file included from /usr/include/panda3d/dtoolbase_cc.h:65,
from /usr/include/panda3d/dtoolbase.h:349,
from /usr/include/panda3d/pandabase.h:22,
from /usr/include/panda3d/pandaFramework.h:18,
from main.cpp:1:
/usr/include/c++/4.4/new:91: error: ‘operator new’ takes type ‘size_t’ (‘long unsigned int’) as first parameter
/usr/include/c++/4.4/new:92: error: ‘operator new’ takes type ‘size_t’ (‘long unsigned int’) as first parameter
/usr/include/c++/4.4/new:95: error: ‘operator new’ takes type ‘size_t’ (‘long unsigned int’) as first parameter
/usr/include/c++/4.4/new:96: error: ‘operator new’ takes type ‘size_t’ (‘long unsigned int’) as first parameter
/usr/include/c++/4.4/new:101: error: ‘operator new’ takes type ‘size_t’ (‘long unsigned int’) as first parameter
/usr/include/c++/4.4/new:102: error: ‘operator new’ takes type ‘size_t’ (‘long unsigned int’) as first parameter
In file included from /usr/include/panda3d/dtoolbase.h:349,
from /usr/include/panda3d/pandabase.h:22,
from /usr/include/panda3d/pandaFramework.h:18,
from main.cpp:1:
/usr/include/panda3d/dtoolbase_cc.h:102: error: reference to ‘ios’ is ambiguous
/usr/include/panda3d/parser-inc/iostream:40: error: candidates are: class ios
/usr/include/c++/4.4/iosfwd:127: error: typedef struct std::basic_ios<char, std::char_traits > std::ios
/usr/include/panda3d/dtoolbase_cc.h:102: error: expected initializer before ‘ios_openmode’
/usr/include/panda3d/dtoolbase_cc.h:103: error: reference to ‘ios’ is ambiguous
/usr/include/panda3d/parser-inc/iostream:40: error: candidates are: class ios
/usr/include/c++/4.4/iosfwd:127: error: typedef struct std::basic_ios<char, std::char_traits > std::ios
/usr/include/panda3d/dtoolbase_cc.h:103: error: expected initializer before ‘ios_fmtflags’
/usr/include/panda3d/dtoolbase_cc.h:104: error: reference to ‘ios’ is ambiguous
/usr/include/panda3d/parser-inc/iostream:40: error: candidates are: class ios
/usr/include/c++/4.4/iosfwd:127: error: typedef struct std::basic_ios<char, std::char_traits > std::ios
/usr/include/panda3d/dtoolbase_cc.h:104: error: expected initializer before ‘ios_iostate’
/usr/include/panda3d/dtoolbase_cc.h:105: error: reference to ‘ios’ is ambiguous
/usr/include/panda3d/parser-inc/iostream:40: error: candidates are: class ios
/usr/include/c++/4.4/iosfwd:127: error: typedef struct std::basic_ios<char, std::char_traits > std::ios
/usr/include/panda3d/dtoolbase_cc.h:105: error: expected initializer before ‘ios_seekdir’
In file included from /usr/include/panda3d/mutexPosixImpl.h:66,
from /usr/include/panda3d/mutexImpl.h:59,
from /usr/include/panda3d/typeRegistry.h:19,
from /usr/include/panda3d/typeHandle.h:19,
from /usr/include/panda3d/cycleData.h:19,
from /usr/include/panda3d/pandaNode.h:20,
from /usr/include/panda3d/nodePath.h:20,
from /usr/include/panda3d/windowFramework.h:19,
from /usr/include/panda3d/pandaFramework.h:20,
from main.cpp:1:
/usr/include/panda3d/mutexPosixImpl.I: In constructor ‘MutexPosixImpl::MutexPosixImpl()’:
/usr/include/panda3d/mutexPosixImpl.I:25: error: ‘pthread_mutexattr_init’ was not declared in this scope
/usr/include/panda3d/mutexPosixImpl.I:28: error: ‘pthread_mutex_init’ was not declared in this scope
/usr/include/panda3d/mutexPosixImpl.I:29: error: ‘pthread_mutexattr_destroy’ was not declared in this scope
/usr/include/panda3d/mutexPosixImpl.I: In destructor ‘MutexPosixImpl::~MutexPosixImpl()’:
/usr/include/panda3d/mutexPosixImpl.I:41: error: ‘pthread_mutex_destroy’ was not declared in this scope
/usr/include/panda3d/mutexPosixImpl.I: In member function ‘void MutexPosixImpl::acquire()’:
/usr/include/panda3d/mutexPosixImpl.I:53: error: ‘pthread_mutex_lock’ was not declared in this scope
/usr/include/panda3d/mutexPosixImpl.I: In member function ‘bool MutexPosixImpl::try_acquire()’:
/usr/include/panda3d/mutexPosixImpl.I:65: error: ‘pthread_mutex_trylock’ was not declared in this scope
/usr/include/panda3d/mutexPosixImpl.I: In member function ‘void MutexPosixImpl::release()’:
/usr/include/panda3d/mutexPosixImpl.I:78: error: ‘pthread_mutex_unlock’ was not declared in this scope
/usr/include/panda3d/mutexPosixImpl.I: In constructor ‘ReMutexPosixImpl::ReMutexPosixImpl()’:
/usr/include/panda3d/mutexPosixImpl.I:101: error: ‘pthread_mutexattr_init’ was not declared in this scope
/usr/include/panda3d/mutexPosixImpl.I:102: error: ‘PTHREAD_MUTEX_RECURSIVE’ was not declared in this scope
/usr/include/panda3d/mutexPosixImpl.I:102: error: ‘pthread_mutexattr_settype’ was not declared in this scope
/usr/include/panda3d/mutexPosixImpl.I:103: error: ‘pthread_mutex_init’ was not declared in this scope
/usr/include/panda3d/mutexPosixImpl.I:104: error: ‘pthread_mutexattr_destroy’ was not declared in this scope
/usr/include/panda3d/mutexPosixImpl.I: In destructor ‘ReMutexPosixImpl::~ReMutexPosixImpl()’:
/usr/include/panda3d/mutexPosixImpl.I:116: error: ‘pthread_mutex_destroy’ was not declared in this scope
/usr/include/panda3d/mutexPosixImpl.I: In member function ‘void ReMutexPosixImpl::acquire()’:
/usr/include/panda3d/mutexPosixImpl.I:128: error: ‘pthread_mutex_lock’ was not declared in this scope
/usr/include/panda3d/mutexPosixImpl.I: In member function ‘bool ReMutexPosixImpl::try_acquire()’:
/usr/include/panda3d/mutexPosixImpl.I:140: error: ‘pthread_mutex_trylock’ was not declared in this scope
/usr/include/panda3d/mutexPosixImpl.I: In member function ‘void ReMutexPosixImpl::release()’:
/usr/include/panda3d/mutexPosixImpl.I:153: error: ‘pthread_mutex_unlock’ was not declared in this scope
In file included from /usr/include/panda3d/memoryHook.h:22,
from /usr/include/panda3d/memoryBase.h:19,
from /usr/include/panda3d/typeRegistry.h:20,
from /usr/include/panda3d/typeHandle.h:19,
from /usr/include/panda3d/cycleData.h:19,
from /usr/include/panda3d/pandaNode.h:20,
from /usr/include/panda3d/nodePath.h:20,
from /usr/include/panda3d/windowFramework.h:19,
from /usr/include/panda3d/pandaFramework.h:20,
from main.cpp:1:
/usr/include/panda3d/parser-inc/map: At global scope:
/usr/include/panda3d/parser-inc/map:33: error: ISO C++ forbids declaration of ‘pair’ with no type
/usr/include/panda3d/parser-inc/map:33: error: expected ‘;’ before ‘<’ token
In file included from /usr/include/panda3d/typeRegistry.h:20,
from /usr/include/panda3d/typeHandle.h:19,
from /usr/include/panda3d/cycleData.h:19,
from /usr/include/panda3d/pandaNode.h:20,
from /usr/include/panda3d/nodePath.h:20,
from /usr/include/panda3d/windowFramework.h:19,
from /usr/include/panda3d/pandaFramework.h:20,
from main.cpp:1:
/usr/include/panda3d/memoryBase.h:73: error: ‘operator new’ takes type ‘size_t’ (‘long unsigned int’) as first parameter
/usr/include/panda3d/memoryBase.h:73: error: ‘operator new’ takes type ‘size_t’ (‘long unsigned int’) as first parameter
/usr/include/panda3d/memoryBase.h:73: error: ‘operator new’ takes type ‘size_t’ (‘long unsigned int’) as first parameter
/usr/include/panda3d/memoryBase.h:73: error: ‘operator new’ takes type ‘size_t’ (‘long unsigned int’) as first parameter
In file included from /usr/include/panda3d/typeHandle.h:19,
from /usr/include/panda3d/cycleData.h:19,
from /usr/include/panda3d/pandaNode.h:20,
from /usr/include/panda3d/nodePath.h:20,
from /usr/include/panda3d/windowFramework.h:19,
from /usr/include/panda3d/pandaFramework.h:20,
from main.cpp:1:
/usr/include/panda3d/typeRegistry.h:45: error: reference to ‘string’ is ambiguous
/usr/include/panda3d/parser-inc/string:42: error: candidates are: typedef class basic_string string
/usr/include/c++/4.4/bits/stringfwd.h:56: error: typedef struct std::basic_string<char, std::char_traits, std::allocator > std::string
/usr/include/panda3d/typeRegistry.h:45: error: ISO C++ forbids declaration of ‘string’ with no type
/usr/include/panda3d/typeRegistry.h:45: error: expected ‘,’ or ‘…’ before ‘&’ token
/usr/include/panda3d/typeRegistry.h:46: error: reference to ‘string’ is ambiguous
/usr/include/panda3d/parser-inc/string:42: error: candidates are: typedef class basic_string string
/usr/include/c++/4.4/bits/stringfwd.h:56: error: typedef struct std::basic_string<char, std::char_traits, std::allocator > std::string
/usr/include/panda3d/typeRegistry.h:46: error: ISO C++ forbids declaration of ‘string’ with no type
/usr/include/panda3d/typeRegistry.h:46: error: expected ‘,’ or ‘…’ before ‘&’ token
/usr/include/panda3d/typeRegistry.h:49: error: reference to ‘string’ is ambiguous
/usr/include/panda3d/parser-inc/string:42: error: candidates are: typedef class basic_string string
/usr/include/c++/4.4/bits/stringfwd.h:56: error: typedef struct std::basic_string<char, std::char_traits, std::allocator > std::string
/usr/include/panda3d/typeRegistry.h:49: error: ISO C++ forbids declaration of ‘string’ with no type
/usr/include/panda3d/typeRegistry.h:49: error: expected ‘,’ or ‘…’ before ‘&’ token
/usr/include/panda3d/typeRegistry.h:52: error: reference to ‘string’ is ambiguous
/usr/include/panda3d/parser-inc/string:42: error: candidates are: typedef class basic_string string
/usr/include/c++/4.4/bits/stringfwd.h:56: error: typedef struct std::basic_string<char, std::char_traits, std::allocator > std::string
/usr/include/panda3d/typeRegistry.h:52: error: ISO C++ forbids declaration of ‘string’ with no type
/usr/include/panda3d/typeRegistry.h:52: error: expected ‘,’ or ‘…’ before ‘&’ token
/usr/include/panda3d/typeRegistry.h:55: error: reference to ‘string’ is ambiguous
/usr/include/panda3d/parser-inc/string:42: error: candidates are: typedef class basic_string string
/usr/include/c++/4.4/bits/stringfwd.h:56: error: typedef struct std::basic_string<char, std::char_traits, std::allocator > std::string
/usr/include/panda3d/typeRegistry.h:55: error: reference to ‘string’ is ambiguous
/usr/include/panda3d/parser-inc/string:42: error: candidates are: typedef class basic_string string
/usr/include/c++/4.4/bits/stringfwd.h:56: error: typedef struct std::basic_string<char, std::char_traits, std::allocator > std::string
/usr/include/panda3d/typeRegistry.h:55: error: ‘string’ does not name a type
/usr/include/panda3d/typeRegistry.h:78: error: reference to ‘ostream’ is ambiguous
/usr/include/panda3d/parser-inc/iostream:52: error: candidates are: class ostream
/usr/include/c++/4.4/iosfwd:130: error: typedef struct std::basic_ostream<char, std::char_traits > std::ostream
/usr/include/panda3d/typeRegistry.h:78: error: reference to ‘ostream’ is ambiguous
/usr/include/panda3d/parser-inc/iostream:52: error: candidates are: class ostream
/usr/include/c++/4.4/iosfwd:130: error: typedef struct std::basic_ostream<char, std::char_traits > std::ostream
/usr/include/panda3d/typeRegistry.h:78: error: ‘ostream’ has not been declared
/usr/include/panda3d/typeRegistry.h:94: error: reference to ‘ostream’ is ambiguous
/usr/include/panda3d/parser-inc/iostream:52: error: candidates are: class ostream
/usr/include/c++/4.4/iosfwd:130: error: typedef struct std::basic_ostream<char, std::char_traits > std::ostream
/usr/include/panda3d/typeRegistry.h:94: error: reference to ‘ostream’ is ambiguous
/usr/include/panda3d/parser-inc/iostream:52: error: candidates are: class ostream
/usr/include/c++/4.4/iosfwd:130: error: typedef struct std::basic_ostream<char, std::char_traits > std::ostream
/usr/include/panda3d/typeRegistry.h:94: error: ‘ostream’ has not been declared
/usr/include/panda3d/typeRegistry.h:95: error: reference to ‘ostream’ is ambiguous
/usr/include/panda3d/parser-inc/iostream:52: error: candidates are: class ostream
/usr/include/c++/4.4/iosfwd:130: error: typedef struct std::basic_ostream<char, std::char_traits > std::ostream
/usr/include/panda3d/typeRegistry.h:95: error: reference to ‘ostream’ is ambiguous
/usr/include/panda3d/parser-inc/iostream:52: error: candidates are: class ostream
/usr/include/c++/4.4/iosfwd:130: error: typedef struct std::basic_ostream<char, std::char_traits > std::ostream
/usr/include/panda3d/typeRegistry.h:95: error: ‘ostream’ has not been declared
/usr/include/panda3d/typeRegistry.h:103: error: reference to ‘string’ is ambiguous
/usr/include/panda3d/parser-inc/string:42: error: candidates are: typedef class basic_string string
/usr/include/c++/4.4/bits/stringfwd.h:56: error: typedef struct std::basic_string<char, std::char_traits, std::allocator > std::string
/usr/include/panda3d/typeRegistry.h:103: error: template argument 1 is invalid
/usr/include/panda3d/typeRegistry.h:103: error: template argument 3 is invalid
/usr/include/panda3d/typeRegistry.h:119: error: expected unqualified-id before ‘<’ token
/usr/include/panda3d/typeRegistry.h:119: error: expected ‘)’ before ‘<’ token
/usr/include/panda3d/typeRegistry.h:119: error: expected initializer before ‘<’ token
In file included from /usr/include/panda3d/cycleData.h:19,
from /usr/include/panda3d/pandaNode.h:20,
from /usr/include/panda3d/nodePath.h:20,
from /usr/include/panda3d/windowFramework.h:19,
from /usr/include/panda3d/pandaFramework.h:20,
from main.cpp:1:
/usr/include/panda3d/typeHandle.h:118: error: reference to ‘string’ is ambiguous
/usr/include/panda3d/parser-inc/string:42: error: candidates are: typedef class basic_string string
/usr/include/c++/4.4/bits/stringfwd.h:56: error: typedef struct std::basic_string<char, std::char_traits, std::allocator > std::string
/usr/include/panda3d/typeHandle.h:118: error: reference to ‘string’ is ambiguous
/usr/include/panda3d/parser-inc/string:42: error: candidates are: typedef class basic_string string
/usr/include/c++/4.4/bits/stringfwd.h:56: error: typedef struct std::basic_string<char, std::char_traits, std::allocator > std::string
/usr/include/panda3d/typeHandle.h:118: error: ‘string’ does not name a type
/usr/include/panda3d/typeHandle.h:131: error: expected unqualified-id before ‘<’ token
/usr/include/panda3d/typeHandle.h:131: error: expected ‘)’ before ‘<’ token
/usr/include/panda3d/typeHandle.h:131: error: expected ‘;’ before ‘<’ token
/usr/include/panda3d/typeHandle.h:144: error: reference to ‘ostream’ is ambiguous
/usr/include/panda3d/parser-inc/iostream:52: error: candidates are: class ostream
/usr/include/c++/4.4/iosfwd:130: error: typedef struct std::basic_ostream<char, std::char_traits > std::ostream
/usr/include/panda3d/typeHandle.h:144: error: reference to ‘ostream’ is ambiguous
/usr/include/panda3d/parser-inc/iostream:52: error: candidates are: class ostream
/usr/include/c++/4.4/iosfwd:130: error: typedef struct std::basic_ostream<char, std::char_traits > std::ostream
/usr/include/panda3d/typeHandle.h:144: error: ‘ostream’ has not been declared
/usr/include/panda3d/typeHandle.h:157: error: reference to ‘ostream’ is ambiguous
/usr/include/panda3d/parser-inc/iostream:52: error: candidates are: class ostream
/usr/include/c++/4.4/iosfwd:130: error: typedef struct std::basic_ostream<char, std::char_traits > std::ostream
/usr/include/panda3d/typeHandle.h:157: error: expected initializer before ‘&’ token
/usr/include/panda3d/typeHandle.h:162: error: reference to ‘ostream’ is ambiguous
/usr/include/panda3d/parser-inc/iostream:52: error: candidates are: class ostream
/usr/include/c++/4.4/iosfwd:130: error: typedef struct std::basic_ostream<char, std::char_traits > std::ostream
/usr/include/panda3d/typeHandle.h:162: error: expected constructor, destructor, or type conversion before ‘&’ token
In file included from /usr/include/panda3d/typeHandle.h:170,
from /usr/include/panda3d/cycleData.h:19,
from /usr/include/panda3d/pandaNode.h:20,
from /usr/include/panda3d/nodePath.h:20,
from /usr/include/panda3d/windowFramework.h:19,
from /usr/include/panda3d/pandaFramework.h:20,
from main.cpp:1:
/usr/include/panda3d/typeHandle.I:131: error: reference to ‘string’ is ambiguous
/usr/include/panda3d/parser-inc/string:42: error: candidates are: typedef class basic_string string
/usr/include/c++/4.4/bits/stringfwd.h:56: error: typedef struct std::basic_string<char, std::char_traits, std::allocator > std::string
/usr/include/panda3d/typeHandle.I:131: error: reference to ‘string’ is ambiguous
/usr/include/panda3d/parser-inc/string:42: error: candidates are: typedef class basic_string string
/usr/include/c++/4.4/bits/stringfwd.h:56: error: typedef struct std::basic_string<char, std::char_traits, std::allocator > std::string
/usr/include/panda3d/typeHandle.I:131: error: ‘string’ does not name a type
/usr/include/panda3d/typeHandle.I:263: error: reference to ‘ostream’ is ambiguous
/usr/include/panda3d/parser-inc/iostream:52: error: candidates are: class ostream
/usr/include/c++/4.4/iosfwd:130: error: typedef struct std::basic_ostream<char, std::char_traits > std::ostream
/usr/include/panda3d/typeHandle.I:263: error: variable or field ‘output’ declared void
/usr/include/panda3d/typeHandle.I:263: error: reference to ‘ostream’ is ambiguous
/usr/include/panda3d/parser-inc/iostream:52: error: candidates are: class ostream
/usr/include/c++/4.4/iosfwd:130: error: typedef struct std::basic_ostream<char, std::char_traits > std::ostream
/usr/include/panda3d/typeHandle.I:263: error: ‘out’ was not declared in this scope
/usr/include/panda3d/typeHandle.I:283: error: expected unqualified-id before ‘<’ token
/usr/include/panda3d/typeHandle.I:283: error: expected ‘)’ before ‘<’ token
/usr/include/panda3d/typeHandle.I:283: error: expected initializer before ‘<’ token
In file included from /usr/include/panda3d/filename.h:22,
from /usr/include/panda3d/dSearchPath.h:20,
from /usr/include/panda3d/configPageManager.h:20,
from /usr/include/panda3d/configVariableCore.h:20,
from /usr/include/panda3d/configVariableBase.h:20,
from /usr/include/panda3d/configVariable.h:19,
from /usr/include/panda3d/configVariableEnum.h:19,
from /usr/include/panda3d/notifyCategory.h:21,
from /usr/include/panda3d/notifyCategoryProxy.h:20,
from /usr/include/panda3d/config_express.h:19,
from /usr/include/panda3d/referenceCount.h:23,
from /usr/include/panda3d/nodeReferenceCount.h:20,
from /usr/include/panda3d/cycleData.h:20,
from /usr/include/panda3d/pandaNode.h:20,
from /usr/include/panda3d/nodePath.h:20,
from /usr/include/panda3d/windowFramework.h:19,
from /usr/include/panda3d/pandaFramework.h:20,
from main.cpp:1:
/usr/include/panda3d/vector_string.h:38: error: expected declaration before end of line
jflesher@TrinaryDragon:~/NetBeansProjects/LightAccessWizzard-Cpp$ g++ -m64 -c -g -I/usr/include/panda3d -I/usr/include/panda3d/parser-inc -I/usr/include/python2.6 -MMD -MP -MF build/Debug/GNU-Linux-x86/main.o.d -o build/Debug/GNU-Linux-x86/main.o main.cpp
In file included from /usr/include/panda3d/parser-inc/stddef.h:23,
from /usr/include/sys/types.h:147,
from /usr/include/panda3d/dtoolbase.h:129,
from /usr/include/panda3d/pandabase.h:22,
from /usr/include/panda3d/pandaFramework.h:18,
from main.cpp:1:
/usr/include/panda3d/parser-inc/stdtypedefs.h:24: error: conflicting declaration ‘typedef int ssize_t’
/usr/include/sys/types.h:110: error: ‘ssize_t’ has a previous declaration as ‘typedef __ssize_t ssize_t’
/usr/include/panda3d/parser-inc/stdtypedefs.h:25: error: conflicting declaration ‘typedef int off_t’
/usr/include/sys/types.h:87: error: ‘off_t’ has a previous declaration as ‘typedef __off_t off_t’
/usr/include/panda3d/parser-inc/stdtypedefs.h:26: error: conflicting declaration ‘typedef unsigned int time_t’
/usr/include/time.h:76: error: ‘time_t’ has a previous declaration as ‘typedef __time_t time_t’
/usr/include/panda3d/parser-inc/stdtypedefs.h:27: error: conflicting declaration ‘typedef int clock_t’
/usr/include/time.h:60: error: ‘clock_t’ has a previous declaration as ‘typedef __clock_t clock_t’
In file included from /usr/include/sys/types.h:220,
from /usr/include/panda3d/dtoolbase.h:129,
from /usr/include/panda3d/pandabase.h:22,
from /usr/include/panda3d/pandaFramework.h:18,
from main.cpp:1:
/usr/include/sys/select.h:78: error: conflicting declaration ‘typedef struct fd_set fd_set’
/usr/include/panda3d/parser-inc/stdtypedefs.h:43: error: ‘fd_set’ has a previous declaration as ‘typedef int fd_set’
In file included from /usr/include/panda3d/dtoolbase_cc.h:49,
from /usr/include/panda3d/dtoolbase.h:349,
from /usr/include/panda3d/pandabase.h:22,
from /usr/include/panda3d/pandaFramework.h:18,
from main.cpp:1:
/usr/include/panda3d/parser-inc/iostream:32: error: expected primary-expression before ‘enum’
/usr/include/panda3d/parser-inc/iostream:32: error: ISO C++ forbids declaration of ‘__published’ with no type
/usr/include/panda3d/parser-inc/iostream:32: error: expected ‘;’ before ‘enum’
/usr/include/panda3d/parser-inc/iostream:42: error: expected primary-expression before ‘typedef’
/usr/include/panda3d/parser-inc/iostream:42: error: ISO C++ forbids declaration of ‘__published’ with no type
/usr/include/panda3d/parser-inc/iostream:42: error: expected ‘;’ before ‘typedef’
/usr/include/panda3d/parser-inc/iostream:54: error: expected primary-expression before ‘void’
/usr/include/panda3d/parser-inc/iostream:54: error: ISO C++ forbids declaration of ‘__published’ with no type
/usr/include/panda3d/parser-inc/iostream:54: error: expected ‘;’ before ‘void’
/usr/include/panda3d/parser-inc/iostream:43: error: ‘typedef long unsigned int ios::streampos’ is private
/usr/include/panda3d/parser-inc/iostream:56: error: within this context
/usr/include/panda3d/parser-inc/iostream:43: error: ‘typedef long unsigned int ios::streampos’ is private
/usr/include/panda3d/parser-inc/iostream:57: error: within this context
/usr/include/panda3d/parser-inc/iostream:44: error: ‘typedef long int ios::streamoff’ is private
/usr/include/panda3d/parser-inc/iostream:58: error: within this context
/usr/include/panda3d/parser-inc/iostream:58: error: ‘ios_base::seekdir’ has not been declared
/usr/include/panda3d/parser-inc/iostream:62: error: expected primary-expression before ‘int’
/usr/include/panda3d/parser-inc/iostream:62: error: ISO C++ forbids declaration of ‘__published’ with no type
/usr/include/panda3d/parser-inc/iostream:62: error: expected ‘;’ before ‘int’
/usr/include/panda3d/parser-inc/iostream:43: error: ‘typedef long unsigned int ios::streampos’ is private
/usr/include/panda3d/parser-inc/iostream:63: error: within this context
/usr/include/panda3d/parser-inc/iostream:43: error: ‘typedef long unsigned int ios::streampos’ is private
/usr/include/panda3d/parser-inc/iostream:64: error: within this context
/usr/include/panda3d/parser-inc/iostream:44: error: ‘typedef long int ios::streamoff’ is private
/usr/include/panda3d/parser-inc/iostream:65: error: within this context
/usr/include/panda3d/parser-inc/iostream:65: error: ‘ios_base::seekdir’ has not been declared
/usr/include/panda3d/parser-inc/iostream:69: error: expected primary-expression before ‘void’
/usr/include/panda3d/parser-inc/iostream:69: error: ISO C++ forbids declaration of ‘__published’ with no type
/usr/include/panda3d/parser-inc/iostream:69: error: expected ‘;’ before ‘void’
/usr/include/panda3d/parser-inc/iostream:74: error: invalid use of incomplete type ‘class ofstream’
/usr/include/panda3d/parser-inc/iostream:72: error: forward declaration of ‘class ofstream’
/usr/include/panda3d/parser-inc/iostream:74: error: ISO C++ forbids declaration of ‘__published’ with no type
/usr/include/panda3d/parser-inc/iostream:79: error: invalid use of incomplete type ‘class ifstream’
/usr/include/panda3d/parser-inc/iostream:77: error: forward declaration of ‘class ifstream’
/usr/include/panda3d/parser-inc/iostream:79: error: ISO C++ forbids declaration of ‘__published’ with no type
/usr/include/panda3d/parser-inc/iostream:84: error: invalid use of incomplete type ‘class fstream’
/usr/include/panda3d/parser-inc/iostream:82: error: forward declaration of ‘class fstream’
/usr/include/panda3d/parser-inc/iostream:84: error: ISO C++ forbids declaration of ‘__published’ with no type
In file included from /usr/include/wchar.h:37,
from /usr/include/c++/4.4/cwchar:47,
from /usr/include/c++/4.4/bits/postypes.h:42,
from /usr/include/c++/4.4/iosfwd:42,
from /usr/include/c++/4.4/ios:39,
from /usr/include/c++/4.4/istream:40,
from /usr/include/c++/4.4/fstream:40,
from /usr/include/panda3d/dtoolbase_cc.h:50,
from /usr/include/panda3d/dtoolbase.h:349,
from /usr/include/panda3d/pandabase.h:22,
from /usr/include/panda3d/pandaFramework.h:18,
from main.cpp:1:
/usr/include/stdio.h:49: error: conflicting declaration ‘typedef struct _IO_FILE FILE’
/usr/include/panda3d/parser-inc/stdtypedefs.h:29: error: ‘struct FILE’ has a previous declaration as ‘struct FILE’
In file included from /usr/include/c++/4.4/bits/localefwd.h:44,
from /usr/include/c++/4.4/ios:42,
from /usr/include/c++/4.4/istream:40,
from /usr/include/c++/4.4/fstream:40,
from /usr/include/panda3d/dtoolbase_cc.h:50,
from /usr/include/panda3d/dtoolbase.h:349,
from /usr/include/panda3d/pandabase.h:22,
from /usr/include/panda3d/pandaFramework.h:18,
from main.cpp:1:
/usr/include/c++/4.4/cctype:66: error: ‘::isalnum’ has not been declared
/usr/include/c++/4.4/cctype:67: error: ‘::isalpha’ has not been declared
/usr/include/c++/4.4/cctype:68: error: ‘::iscntrl’ has not been declared
/usr/include/c++/4.4/cctype:69: error: ‘::isdigit’ has not been declared
/usr/include/c++/4.4/cctype:70: error: ‘::isgraph’ has not been declared
/usr/include/c++/4.4/cctype:71: error: ‘::islower’ has not been declared
/usr/include/c++/4.4/cctype:72: error: ‘::isprint’ has not been declared
/usr/include/c++/4.4/cctype:73: error: ‘::ispunct’ has not been declared
/usr/include/c++/4.4/cctype:74: error: ‘::isspace’ has not been declared
/usr/include/c++/4.4/cctype:75: error: ‘::isupper’ has not been declared
/usr/include/c++/4.4/cctype:76: error: ‘::isxdigit’ has not been declared
/usr/include/c++/4.4/cctype:77: error: ‘::tolower’ has not been declared
/usr/include/c++/4.4/cctype:78: error: ‘::toupper’ has not been declared
In file included from /usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:41,
from /usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr.h:162,
from /usr/include/c++/4.4/ext/atomicity.h:34,
from /usr/include/c++/4.4/bits/ios_base.h:41,
from /usr/include/c++/4.4/ios:43,
from /usr/include/c++/4.4/istream:40,
from /usr/include/c++/4.4/fstream:40,
from /usr/include/panda3d/dtoolbase_cc.h:50,
from /usr/include/panda3d/dtoolbase.h:349,
from /usr/include/panda3d/pandabase.h:22,
from /usr/include/panda3d/pandaFramework.h:18,
from main.cpp:1:
/usr/include/panda3d/parser-inc/pthread.h:23: error: conflicting declaration ‘typedef int pthread_t’
/usr/include/bits/pthreadtypes.h:50: error: ‘pthread_t’ has a previous declaration as ‘typedef long unsigned int pthread_t’
/usr/include/panda3d/parser-inc/pthread.h:24: error: conflicting declaration ‘typedef int pthread_key_t’
/usr/include/bits/pthreadtypes.h:140: error: ‘pthread_key_t’ has a previous declaration as ‘typedef unsigned int pthread_key_t’
/usr/include/panda3d/parser-inc/pthread.h:25: error: conflicting declaration ‘typedef int pthread_mutex_t’
/usr/include/bits/pthreadtypes.h:104: error: ‘pthread_mutex_t’ has a previous declaration as ‘typedef union pthread_mutex_t pthread_mutex_t’
/usr/include/panda3d/parser-inc/pthread.h:26: error: conflicting declaration ‘typedef int pthread_cond_t’
/usr/include/bits/pthreadtypes.h:130: error: ‘pthread_cond_t’ has a previous declaration as ‘typedef union pthread_cond_t pthread_cond_t’
In file included from /usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr.h:162,
from /usr/include/c++/4.4/ext/atomicity.h:34,
from /usr/include/c++/4.4/bits/ios_base.h:41,
from /usr/include/c++/4.4/ios:43,
from /usr/include/c++/4.4/istream:40,
from /usr/include/c++/4.4/fstream:40,
from /usr/include/panda3d/dtoolbase_cc.h:50,

You’re still including parser-inc. Don’t include that; it causes real problems because it shadows the system header files of the same names. As I said, the files in this directory are not meant to be read by the real compiler.

What error messages did you get without including parser-inc?

David

Sorry about that; hit the up arrow one too many times in the terminal; as it turns out my link statement was in error; this one works fine

g++ -m64 -o path/samplecode buildpath/sampleobject/main.o -L/usr/lib/panda3d /usr/lib/panda3d/libp3dtool.so /usr/lib/panda3d/libp3direct.so /usr/lib/panda3d/libp3dtoolconfig.so /usr/lib/panda3d/libp3framework.so /usr/lib/panda3d/libp3pystub.so /usr/lib/panda3d/libpanda.so /usr/lib/panda3d/libpandaexpress.so /usr/lib/panda3d/libpandafx.so

Libraries linked:
/usr/lib/panda3d/libp3direct.so
/usr/lib/panda3d/libp3dtool.so
/usr/lib/panda3d/libp3dtoolconfig.so
/usr/lib/panda3d/libp3framework.so
/usr/lib/panda3d/libp3pystub.so
/usr/lib/panda3d/libpanda.so
/usr/lib/panda3d/libpandaexpress.so
/usr/lib/panda3d/libpandafx.so

Include paths:
/usr/include/panda3d
/usr/include/python2.6

Still having issues with Netbeans (Error in Run) and Eclipse (Error in Link), something in the configuration; I’ll figure it out soon, I hope.

Thanks; newbe error for an old programmer; if experience has tough me anything, its humility.

The reason I uncluded /usr/include/panda3d/parser-inc was in:
pandaFramework.h
which includes
pandabase.h
which includes
dtoolbase.h
which does this:
#ifdef HAVE_PYTHON
#undef _POSIX_C_SOURCE
#undef _XOPEN_SOURCE
#include “pyconfig.h”
#endif

Now pyconfig.h is in /usr/include/panda3d/parser-inc; but is empty.

Now the question is; if HAVE_PYTHON is defined; which it must be to include pyconfig.h; what should I do?

Create and empty file here, or add relative path to this statement, would be two options; but I don’t like either.

Thanks.

Ignore the header files in parser-inc. They are never included by an actual compiler; parser-inc contains stub files of common header files to help the parser tool that generates the Python bindings. They are not relevant to you.

pyconfig.h is provided by Python, so add the Python include directory to your include paths. In your case probably /usr/include/python2.6, as found in the python2.6-dev package.

Just to help others that get here:

The Problem I’m having in Netbeans was reported as a bug; the fix was to set this in the Environment Variables:
LD_BIND_NOW=1

Note: you are right about pyconfig.h being defined in python; don’t know why it didn’t find it; I did include /usr/include/python2.6; this only seems to be an issue in Netbeans.

I prefer IDE’s, but they can cause issues that do not exist in the code; as seen here; so I’m going to see if I can get it to run in Netbeans, Eclipse and Code::Blocks; Just to know which one works the best for me; I did a lot of searching, and didn’t find a lot of answers.

Thanks

I have same Errors :frowning:

System: Debian 6 (squeeze)
gcc version 4.4.5
Python version 2.6.6
IDE: Qt Creator 2.4.1

This is the project
docs.google.com/open?id=0B5p1Qw … m5nV2VkMDA

Thanks

Hi,

can I hijack this thread, since the topic of my problem is the same. Anyway, thanks for reminding the useless parse-inc and when i remove it from the compiler, i then try to build and all get fixed except this:

g++ -L/usr/lib/x86_64-linux-gnu/panda3d -L/usr/lib/x86_64-linux-gnu/panda3d -L/usr/lib/python2.7/dist-packages/panda3d -L/usr/lib/x86_64-linux-gnu/panda3d -o bin/Release/Panda3dTest obj/Release/src/main.o  -s  /usr/lib/x86_64-linux-gnu/panda3d/libp3direct.so /usr/lib/x86_64-linux-gnu/panda3d/libp3dtool.so /usr/lib/x86_64-linux-gnu/panda3d/libp3dtoolconfig.so /usr/lib/x86_64-linux-gnu/panda3d/libp3framework.so /usr/lib/x86_64-linux-gnu/panda3d/libp3openal_audio.so /usr/lib/x86_64-linux-gnu/panda3d/libp3ptloader.so /usr/lib/x86_64-linux-gnu/panda3d/libp3pystub.a /usr/lib/x86_64-linux-gnu/panda3d/libp3tinydisplay.so /usr/lib/x86_64-linux-gnu/panda3d/libp3vision.so /usr/lib/x86_64-linux-gnu/panda3d/libpanda.so /usr/lib/x86_64-linux-gnu/panda3d/libpandaai.so /usr/lib/x86_64-linux-gnu/panda3d/libpandabullet.so /usr/lib/x86_64-linux-gnu/panda3d/libpandaegg.so /usr/lib/x86_64-linux-gnu/panda3d/libpandaexpress.so /usr/lib/x86_64-linux-gnu/panda3d/libpandafx.so /usr/lib/x86_64-linux-gnu/panda3d/libpandagl.so /usr/lib/x86_64-linux-gnu/panda3d/libpandagles.so /usr/lib/x86_64-linux-gnu/panda3d/libpandagles2.so /usr/lib/x86_64-linux-gnu/panda3d/libpandaphysics.so /usr/lib/x86_64-linux-gnu/panda3d/libpandaskel.so /usr/lib/x86_64-linux-gnu/panda3d/libp3direct.so /usr/lib/x86_64-linux-gnu/panda3d/libp3dtool.so /usr/lib/x86_64-linux-gnu/panda3d/libp3dtoolconfig.so /usr/lib/x86_64-linux-gnu/panda3d/libp3framework.so /usr/lib/x86_64-linux-gnu/panda3d/libp3openal_audio.so /usr/lib/x86_64-linux-gnu/panda3d/libp3ptloader.so /usr/lib/x86_64-linux-gnu/panda3d/libp3pystub.a /usr/lib/x86_64-linux-gnu/panda3d/libp3tinydisplay.so /usr/lib/x86_64-linux-gnu/panda3d/libp3vision.so /usr/lib/x86_64-linux-gnu/panda3d/libpanda.so /usr/lib/x86_64-linux-gnu/panda3d/libpandaai.so /usr/lib/x86_64-linux-gnu/panda3d/libpandabullet.so /usr/lib/x86_64-linux-gnu/panda3d/libpandaegg.so /usr/lib/x86_64-linux-gnu/panda3d/libpandaexpress.so /usr/lib/x86_64-linux-gnu/panda3d/libpandafx.so /usr/lib/x86_64-linux-gnu/panda3d/libpandagl.so /usr/lib/x86_64-linux-gnu/panda3d/libpandagles.so /usr/lib/x86_64-linux-gnu/panda3d/libpandagles2.so /usr/lib/x86_64-linux-gnu/panda3d/libpandaphysics.so /usr/lib/x86_64-linux-gnu/panda3d/libpandaskel.so /usr/lib/x86_64-linux-gnu/panda3d/libp3direct.so /usr/lib/x86_64-linux-gnu/panda3d/libp3dtool.so /usr/lib/x86_64-linux-gnu/panda3d/libp3dtoolconfig.so /usr/lib/x86_64-linux-gnu/panda3d/libp3framework.so /usr/lib/x86_64-linux-gnu/panda3d/libp3openal_audio.so /usr/lib/x86_64-linux-gnu/panda3d/libp3ptloader.so /usr/lib/x86_64-linux-gnu/panda3d/libp3pystub.a /usr/lib/x86_64-linux-gnu/panda3d/libp3tinydisplay.so /usr/lib/x86_64-linux-gnu/panda3d/libp3vision.so /usr/lib/x86_64-linux-gnu/panda3d/libpanda.so /usr/lib/x86_64-linux-gnu/panda3d/libpandaai.so /usr/lib/x86_64-linux-gnu/panda3d/libpandabullet.so /usr/lib/x86_64-linux-gnu/panda3d/libpandaegg.so /usr/lib/x86_64-linux-gnu/panda3d/libpandaexpress.so /usr/lib/x86_64-linux-gnu/panda3d/libpandafx.so /usr/lib/x86_64-linux-gnu/panda3d/libpandagl.so /usr/lib/x86_64-linux-gnu/panda3d/libpandagles.so /usr/lib/x86_64-linux-gnu/panda3d/libpandagles2.so /usr/lib/x86_64-linux-gnu/panda3d/libpandaphysics.so /usr/lib/x86_64-linux-gnu/panda3d/libpandaskel.so /usr/lib/python2.7/dist-packages/panda3d/ai.so /usr/lib/python2.7/dist-packages/panda3d/bullet.so /usr/lib/python2.7/dist-packages/panda3d/core.so /usr/lib/python2.7/dist-packages/panda3d/direct.so /usr/lib/python2.7/dist-packages/panda3d/dtoolconfig.so /usr/lib/python2.7/dist-packages/panda3d/egg.so /usr/lib/python2.7/dist-packages/panda3d/fx.so /usr/lib/python2.7/dist-packages/panda3d/physics.so /usr/lib/python2.7/dist-packages/panda3d/skel.so /usr/lib/python2.7/dist-packages/panda3d/vision.so


/usr/bin/ld: obj/Release/src/main.o: undefined reference to symbol 'pthread_getspecific@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 51 second(s))
2 error(s), 460 warning(s) (0 minute(s), 51 second(s))

how should i do? thanks before

It’s not at all the same problem. Please create a new thread in the future.

In your case, the problem may be solved by adding -pthread to your linker and compiler command-line.