![]() |
|
#1
|
|||
|
|||
Error: expected primary-expression before '.' tokenhello everyone,
I'm working with boost graph library, i get this compilation error and i don't know how to fix it, could anyone help me?: error: expected primary-expression before '.' token Here is my code : CPP / C++ / C Code:
The error is in the last line. I've omitted all irrelevant code. Thanx! Last edited by admin : 27-Mar-2009 at 03:20.
Reason: Please insert your example C/C++ codes between [CPP] and [/CPP] tags
|
|||
|
#2
|
|||
|
|||
Re: Error: expected primary-expression before '.' tokenQuote:
Generally speaking, compilers give a best guess estimate of where your code is incorrect. If you have missed a semi-colon, for example, the compiler wont know this until some number of following lines (possibly 1 or more) - it will tell you approximately where the error. Some approximations are better than others. It would be helpful for you to copy the exact compiler output (including line numbers and all else) and then paste your code here (+/- 10 lines from the reported error). Make sure to provide line numbers in your code for us as well. __________________
My personal site: Utilities for text processing, debugging, testing and plotting |
|
#3
|
|||
|
|||
Re: Error: expected primary-expression before '.' tokeni made a mistake, the error is actually ',' not '.'
the compiler output is : tj39@crx557.cro.st.com{models_cpp}64 :g++ -I/sw/gnu_compil/gnu/Linux-RH-WS-3/include/boost-1_35 -L/sw/gnu_compil/gnu/Linux-RH-WS-3/lib/ -lboost_graph-gcc41-mt PTM_model4.cpp PTM_model4.cpp:154: error: expected primary-expression before ',' token thanx |
|
#4
|
|||
|
|||
Re: Error: expected primary-expression before '.' tokenBecause
CPP / C++ / C Code:
CPP / C++ / C Code:
You should be able to do something like CPP / C++ / C Code:
__________________
My personal site: Utilities for text processing, debugging, testing and plotting |
Recent GIDBlog
Install Adobe Flash - Without Administrator Rights by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need urgent help with regular expression matching | Xilon | C Programming Language | 7 | 15-Oct-2006 03:04 |
| Replacing N'th token in a file. | kobi_hikri | C Programming Language | 2 | 24-Jun-2005 02:00 |
| Can enum have same name as class? | crystalattice | C++ Forum | 3 | 08-Dec-2004 16:43 |
| storing a token pointer as a string | CoreLEx | C Programming Language | 1 | 07-Oct-2003 11:33 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The