| | |
From VC++ to GNU++
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Sep 2008
Posts: 31
Reputation:
Solved Threads: 0
Hello,
I developed an application in VC++ an now I want to compile it using GNU++ to be run on a ubuntu server (where I am actually trying tocompile it). After some syntax/usage corrections I get an error which I totally don't understand (and I don't have it in VC++, of course).
The error is
Now, the function it refers to is the following (error at the 4th line)
This application uses the Loki library, which is provided in /usr/lib and the includes in /usr/include.
Head is a typedef in Loki::TypeList, which is the type that is being provided to the function.
Does anyone know what the problem is/may be? Can someone identify a known difference between compilers? I would appreciate if someone could head me in the right direction to solve this.
Thank you in advance
Rui
I developed an application in VC++ an now I want to compile it using GNU++ to be run on a ubuntu server (where I am actually trying tocompile it). After some syntax/usage corrections I get an error which I totally don't understand (and I don't have it in VC++, of course).
The error is
C++ Syntax (Toggle Plain Text)
Utils.h: In static member function âstatic void brickheuristics::TL2FunV<TList, SearchFun>::FillVector(std::vector<SearchFun, std::allocator<_Tp> >&)â: Utils.h:43: error: expected `;' before âhâ
Now, the function it refers to is the following (error at the 4th line)
C++ Syntax (Toggle Plain Text)
template< class TList, class SearchFun > struct TL2FunV{ static void FillVector( std::vector< SearchFun >& v ){ TList::Head h; v.push_back( SearchFun(h) ); TL2FunV<typename TList::Tail, SearchFun>::FillVector( v ); } };
This application uses the Loki library, which is provided in /usr/lib and the includes in /usr/include.
Head is a typedef in Loki::TypeList, which is the type that is being provided to the function.
Does anyone know what the problem is/may be? Can someone identify a known difference between compilers? I would appreciate if someone could head me in the right direction to solve this.
Thank you in advance
Rui
![]() |
Similar Threads
- GNU MP Library (or RSA in C++) (C++)
- Gnu Cpp - missing error message on missing return statement (C++)
- Porting from Sun C++ compiler to GNU gcc (C++)
- A problem when I employ GNU Scientific Libraries in a Code (C)
- g++ GNU compiler help (C++)
- GNU GPL Guideline Revision to Launch (Geeks' Lounge)
- problem about the codding (C)
Other Threads in the C++ Forum
- Previous Thread: How to return map iterator to the vector
- Next Thread: Locating upper case letters within html tags?
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays assignment beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete developer display dll dynamiccharacterarray email encryption error file format forms fstream function functions game generator getline givemetehcodez graph iamthwee ifstream image input int java lib list loop looping loops map math matrix memory multidimensional multiple newbie news node number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





