[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop
Subject:    KDE 2.0 and QT 3.0 beta 4 works together ?
From:       "catalin" <catalin () bsc ! ro>
Date:       2001-10-30 9:34:06
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello,
I installed recently Kdevelop and QT3.0 beta 4 from Redhat 7.2 CD .
I try to write a small program that uses QT3 but I get a strange error.
I attached the source , the header file and the error. 
I think it's something link with qt2 and qt3 ...
Maybe someone can help me with this..
Thank you.


Sincerely,
Catalin Mincu
Software Developer at 
Balkan Software Consult

Contact me at 093.591.146 or visit my website at 
http://www.cata76.home.ro to find out more about me

[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2479.6" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2>I installed recently Kdevelop and QT3.0 beta 4 from 
Redhat 7.2 CD .</FONT></DIV>
<DIV><FONT face=Arial size=2>I try to write a small program that uses QT3 but I 
get a strange error.</FONT></DIV>
<DIV><FONT face=Arial size=2>I attached&nbsp;the source&nbsp;, the header file 
and the error. </FONT></DIV>
<DIV><FONT face=Arial size=2>I think it's something link with qt2 and qt3 
...</FONT></DIV>
<DIV><FONT face=Arial size=2>Maybe someone can help me with this..</FONT></DIV>
<DIV><FONT face=Arial size=2>Thank you.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Sincerely,<BR>Catalin Mincu<BR>Software Developer 
at <BR>Balkan Software Consult</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Contact me at 093.591.146 or visit my website at 
<BR><A href="http://www.cata76.home.ro">http://www.cata76.home.ro</A> to find 
out more about me</FONT></DIV></BODY></HTML>

["Erorr.txt" (text/plain)]

gmake  all-recursive
gmake[1]: Entering directory `/root/Proiecte/test'
Making all in test
gmake[2]: Entering directory `/root/Proiecte/test/test'
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde =
-I/usr/lib/qt-3.0.0/include -I/usr/X11R6/include     -O2 -O0 -g3 -Wall =
-fno-exceptions -fno-check-new  -c test.cpp
test.cpp: In method `Test::Test (QWidget *, const char *)':
test.cpp:32: warning: long int format, int arg (arg 3)
test.cpp:37: warning: long int format, int arg (arg 3)
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde =
-I/usr/lib/qt-3.0.0/include -I/usr/X11R6/include     -O2 -O0 -g3 -Wall =
-fno-exceptions -fno-check-new  -c main.cpp
/usr/lib/qt-3.0.0/bin/moc ./test.h -o test.moc.cpp
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde =
-I/usr/lib/qt-3.0.0/include -I/usr/X11R6/include     -O2 -O0 -g3 -Wall =
-fno-exceptions -fno-check-new  -c test.moc.cpp
creating test_meta_unload.cpp
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde =
-I/usr/lib/qt-3.0.0/include -I/usr/X11R6/include     -O2 -O0 -g3 -Wall =
-fno-exceptions -fno-check-new  -c test_meta_unload.cpp
test_meta_unload.cpp: In function `void unload_test (const char **)':
test_meta_unload.cpp:5: `objectDict' undeclared (first use this
function)
test_meta_unload.cpp:5: (Each undeclared identifier is reported only
once for each function it appears in.)
gmake[2]: Leaving directory `/root/Proiecte/test/test'
gmake[2]: *** [test_meta_unload.o] Error 1
gmake[1]: Leaving directory `/root/Proiecte/test'
gmake[1]: *** [all-recursive] Error 1
gmake: *** [all-recursive-am] Error 2
*** e=BAec ***
["test.cpp" (application/octet-stream)]

/***************************************************************************
                          test.cpp  -  description
                             -------------------
    begin                : Ma oct 30 10:27:18 EET 2001
    copyright            : (C) 2001 by root
    email                : root@bsc.ro
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#include "test.h"

Test::Test(QWidget *parent, const char *name) : QWidget(parent, name)
{
	//-----------------------------------------------------
	// Init the tree view
	//-----------------------------------------------------
	view->setRootIsDecorated(true);
	view->addColumn("Items");
	//-----------------------------------------------------
	// Create some items so we can play with
	//-----------------------------------------------------
	for (int i = 1; i <= 5; i++)
		{
		str.sprintf("Item %ld", i);
		pParent = new QListViewItem(view, str);

		for (int j = 1; j <= 5; j++)
			{
			str.sprintf("Child %ld", j);
				pChild = new QListViewItem(pParent, str);
			}
		}



}

Test::~Test()
{
}

["test.h" (application/octet-stream)]
-
to unsubscribe from this list send an email to kdevelop-request@kdevelop.org with the following body:
unsubscribe »your-email-address«


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic