* where is the error??
@ 2007-12-30 11:50 mahmoodn
2007-12-30 12:22 ` Tom Browder
2007-12-30 12:30 ` Tim Stahlhut
0 siblings, 2 replies; 6+ messages in thread
From: mahmoodn @ 2007-12-30 11:50 UTC (permalink / raw)
To: gcc-help
Hello,
when I make, the output does not show exactly where is the problem:working:.
here is the output of "make":
/usr/lib/qt-3.3/bin/moc -o VVc_demo.moc VVc_demo.cpp
g++ -I../../include -I../../../Arrangement_2/include -ggdb -Wall
'-I/home/naderan/CGAL-3.2/include/CGAL/config/i686_Linux-2.6_g++-3.3.3'
'-I/home/naderan/CGAL-3.2/include' -I/usr/X11R6/include
-I/usr/lib/qt-3.3/include -DCGAL_USE_CGAL_CORE -c VVc_demo.cpp
VVc_demo.cpp: In member function `virtual void
VVc_window::mousePressEvent(QMouseEvent*)':
VVc_demo.cpp:254: warning: unused variable `int numberOfPoints'
VVc_demo.cpp:234: warning: unused variable `double len2'
VVc_demo.cpp:234: warning: unused variable `double len3'
VVc_demo.cpp: In member function `void VVc_window::redraw_win()':
VVc_demo.cpp:410: error: request for member `drawLine' in `
this->VVc_window::widget', which is of non-aggregate type
`CGAL::Qt_widget*'
../../include/CGAL/VVc_diagram_2.h: In member function `void
CGAL::VVc_diagram_2<Traits_, AppKernel_>::queryMahmood(typename
CGAL::Polygon_clearance_offsetting_2<Traits_>::Alg_point_2&, typename
CGAL::Polygon_clearance_offsetting_2<Traits_>::Alg_point_2&, double&,
std::vector<typename
CGAL::Polygon_clearance_offsetting_2<Traits_>::Alg_point_2,
std::allocator<typename
CGAL::Polygon_clearance_offsetting_2<Traits_>::Alg_point_2> >) const
[with
Traits_ = Traits_2, AppKernel_ = App_kernel]':
VVc_demo.cpp:289: instantiated from here
../../include/CGAL/VVc_diagram_2.h:956: warning: unused variable `bool flag'
make: *** [VVc_demo.o] Error 1%-|
So where is the error???:confused: the warning should not produce ant error.
Regards,
mahmood
--
View this message in context: http://www.nabble.com/where-is-the-error---tp14546579p14546579.html
Sent from the gcc - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: where is the error??
2007-12-30 11:50 where is the error?? mahmoodn
@ 2007-12-30 12:22 ` Tom Browder
2007-12-30 12:27 ` mahmoodn
2007-12-30 12:30 ` Tim Stahlhut
1 sibling, 1 reply; 6+ messages in thread
From: Tom Browder @ 2007-12-30 12:22 UTC (permalink / raw)
To: mahmoodn; +Cc: gcc-help
On Dec 30, 2007 5:49 AM, mahmoodn <nt_mahmood@yahoo.com> wrote:
>
> Hello,
> when I make, the output does not show exactly where is the problem:working:.
> here is the output of "make":
...
> VVc_demo.cpp:410: error: request for member `drawLine' in ` <==
> this->VVc_window::widget', which is of non-aggregate type <==
> `CGAL::Qt_widget*' <==
...
How about there?
-Tom
Tom Browder
Niceville, Florida
USA
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: where is the error??
2007-12-30 12:22 ` Tom Browder
@ 2007-12-30 12:27 ` mahmoodn
2007-12-30 12:46 ` Tom Browder
0 siblings, 1 reply; 6+ messages in thread
From: mahmoodn @ 2007-12-30 12:27 UTC (permalink / raw)
To: gcc-help
> How about there?
Oh, yes. I thought that gcc stop right after an error. but seems that it
continue compiling and at end it generate a report.
Thanks,
Tom Browder wrote:
>
> On Dec 30, 2007 5:49 AM, mahmoodn <nt_mahmood@yahoo.com> wrote:
>>
>> Hello,
>> when I make, the output does not show exactly where is the
>> problem:working:.
>> here is the output of "make":
> ...
>> VVc_demo.cpp:410: error: request for member `drawLine' in ` <==
>> this->VVc_window::widget', which is of non-aggregate type <==
>> `CGAL::Qt_widget*'
>> <==
> ...
>
> How about there?
>
> -Tom
>
> Tom Browder
> Niceville, Florida
> USA
>
>
--
View this message in context: http://www.nabble.com/where-is-the-error---tp14546579p14546782.html
Sent from the gcc - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: where is the error??
2007-12-30 12:27 ` mahmoodn
@ 2007-12-30 12:46 ` Tom Browder
0 siblings, 0 replies; 6+ messages in thread
From: Tom Browder @ 2007-12-30 12:46 UTC (permalink / raw)
To: mahmoodn; +Cc: gcc-help
On Dec 30, 2007 6:26 AM, mahmoodn <nt_mahmood@yahoo.com> wrote:
...
> Oh, yes. I thought that gcc stop right after an error. but seems that it
> continue compiling and at end it generate a report.
If you use 'make -k' that is true, but eliminating '-k' should cause
the compile to stop on or near the error.
-Tom
Tom Browder
Niceville, Florida
USA
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: where is the error??
2007-12-30 11:50 where is the error?? mahmoodn
2007-12-30 12:22 ` Tom Browder
@ 2007-12-30 12:30 ` Tim Stahlhut
2007-12-30 13:00 ` mahmoodn
1 sibling, 1 reply; 6+ messages in thread
From: Tim Stahlhut @ 2007-12-30 12:30 UTC (permalink / raw)
To: gcc-help
mahmoodn wrote:
> VVc_demo.cpp:410: error: request for member `drawLine' in `
> this->VVc_window::widget', which is of non-aggregate type
> `CGAL::Qt_widget*'
I would look at line 410 for the error.
Tim S
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: where is the error??
2007-12-30 12:30 ` Tim Stahlhut
@ 2007-12-30 13:00 ` mahmoodn
0 siblings, 0 replies; 6+ messages in thread
From: mahmoodn @ 2007-12-30 13:00 UTC (permalink / raw)
To: gcc-help
> I would look at line 410 for the error.
Thank you. the problem was I did not notice that the error is actually
reported, I was confused that whether the warning caused the error 1:-/
now that I know where is the problem I can resolve it. it was a simple
mistake
Thanks again,
Tim Stahlhut-4 wrote:
>
> mahmoodn wrote:
>
>> VVc_demo.cpp:410: error: request for member `drawLine' in `
>> this->VVc_window::widget', which is of non-aggregate type
>> `CGAL::Qt_widget*'
>
> I would look at line 410 for the error.
>
> Tim S
>
>
>
--
View this message in context: http://www.nabble.com/where-is-the-error---tp14546579p14546988.html
Sent from the gcc - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-12-30 13:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-30 11:50 where is the error?? mahmoodn
2007-12-30 12:22 ` Tom Browder
2007-12-30 12:27 ` mahmoodn
2007-12-30 12:46 ` Tom Browder
2007-12-30 12:30 ` Tim Stahlhut
2007-12-30 13:00 ` mahmoodn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).