GCC build error

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

GCC build error

Postby pHySiQuE » Fri Nov 08, 2013 5:59 pm

Latest source is complaining about the dgGraph header when built with GCC:
../../Source/Libraries/NewtonDynamics/coreLibrary_300/source/core/dgGraph.h:127:11: error: expected nested-name-specifier
../../Source/Libraries/NewtonDynamics/coreLibrary_300/source/core/dgGraph.h:127:11: error: expected ‘(’
../../Source/Libraries/NewtonDynamics/coreLibrary_300/source/core/dgGraph.h:127:11: error: expected ‘;’
../../Source/Libraries/NewtonDynamics/coreLibrary_300/source/core/dgGraph.h:128:26: error: ‘nodeInfo’ was not declared in this scope
../../Source/Libraries/NewtonDynamics/coreLibrary_300/source/core/dgGraph.h:128:34: error: there are no arguments to ‘GetNodeFromInfo’ that depend on a template parameter, so a declaration of ‘GetNodeFromInfo’ must be available [-fpermissive]
../../Source/Libraries/NewtonDynamics/coreLibrary_300/source/core/dgGraph.h:128:34: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
pHySiQuE
 
Posts: 608
Joined: Fri Sep 02, 2011 9:54 pm

Re: GCC build error

Postby Julio Jerez » Fri Nov 08, 2013 7:18 pm

yes I added that function to the graph, It may have soem problem with GCC.
I will try to buidl on the Mac, to see if is ok with GCC and LLVM in OSX.

I tryed to install unbunto 12 on my laptop, and it is incomplete now,
I see if I can get ti together over the weekend and see what the problem is.
Julio Jerez
Moderator
Moderator
 
Posts: 12452
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: GCC build error

Postby pHySiQuE » Fri Nov 08, 2013 7:29 pm

At line 127 of dggraph.h, if you just remove those "typename" statements it works fine:
Code: Select all
   dgGraphNode<dgNodeData, dgEdgeData>* const nodeInfo =  (dgGraphNode<dgNodeData, dgEdgeData>*) ptr;
pHySiQuE
 
Posts: 608
Joined: Fri Sep 02, 2011 9:54 pm

Re: GCC build error

Postby Julio Jerez » Fri Nov 08, 2013 7:46 pm

ha, it has to be conditioanl them, because visual studio, does no accept it unless I qualify it with a type_name
has you try Visual studio without the type name?
Julio Jerez
Moderator
Moderator
 
Posts: 12452
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: GCC build error

Postby Julio Jerez » Fri Nov 08, 2013 7:57 pm

you are right, it compile fine with VS without the typename.
I do not know why but when I was wrting it I had to add teh type name, but it does not need it now. :?

It is checked in now.
Julio Jerez
Moderator
Moderator
 
Posts: 12452
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests

cron