Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
3255 connectés 

 


Dernière réponse
Sujet : kdvlop
GUG k merci dark j essayerait ...
 
kler kdevelop pour un newbie comme moi ...

Votre réponse
Nom d'utilisateur    Pour poster, vous devez être inscrit sur ce forum .... si ce n'est pas le cas, cliquez ici !
Le ton de votre message                        
                       
Votre réponse


[b][i][u][strike][spoiler][fixed][cpp][url][email][img][*]   
 
   [quote]
 

Options

 
Vous avez perdu votre mot de passe ?


Vue Rapide de la discussion
GUG k merci dark j essayerait ...
 
kler kdevelop pour un newbie comme moi ...
Dark_Schneider dans le même genre je conseille xmecs ou glimmer.
 
kdevelop c'est vraiment pour un projet car avec kdevelop le processus de création du configure, de automake, de la doc, etc ... est automatisé. Mais lorsqu'on ne sait pas comment faire ....
GUG j ai laisser tomber kdevelop et pri vim et commande en ligne gcc  
 
merci qd meme
GUG bon ok merci j v voir ca :)  
thx
Dark_Schneider soit tu lances l'exe à la main depuis la console, soit tu modifies correctement les fichiers du projet pour que la création du projet marche
GUG ok  
mais alors je fait koi apres pour voir ce que le prog donne ? ( a la maniere d un turbo c ou faut juste faire run et hop ca se lance)  
 
merci
GUG ok  
mais alors je fait koi apres pour voir ce que le prog donne ? ( a la maniere d un turbo c ou faut juste faire run et hop ca se lance)  
 
merci
Dark_Schneider ben c'est bête.
Comme je l'ai dit plus haut, j'ai fait le test, j'ai juste rajouté le #include qui manquait et à la compilation, dans messages j'ai :
 
gcc -DHAVE_CONFIG_H -I. -I. -I..     -O0 -g3 -Wall -c main.c
*** succès ***

 
ah oui, j'ai fait compiler et non construire.
quand tu fais consttruire il a d'autres fichiers à modifier.
GUG j ai bien selectionner  le c  
j ai refait 2 fois le test mais ca se votre encore et ja i rien trouver ds le manuel
Dark_Schneider je viens de faire le test sous kdevelop.
 
As tu sélectionner avec le wizard que tu voulais faire du C/C++ ?
Moi c'est ce que j'ai fait, j'ai laissé les paramètres par défaut et il m'a fait un jolie code.
 

 
/***************************************************************************
                          main.c  -  description
                             -------------------
    begin                : jeu sep  6 21:46:36 CEST 2001
    copyright            : (C) 2001 by Will SMITH
    email                : f.faber@netcourrier.com
 **************************************************
*************************/
 
/*************************************************
**************************
 *                                                                         *
 *   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.                                   *
 *                                                                         *
 ***************************************************************************/
 
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
 
#include <stdio.h>
#include <stdlib.h>
 #include <curses.h>
 
 
int main(int argc, char *argv[])
{
  printf("Hello, world!\n" );
  getch();
  return EXIT_SUCCESS;
}
Dark_Schneider 1°/ si tu veux utiliser getch il faut mettre :
 #include <curses.h>
 
en effet définit dans curses.
> man getch
 
si si si, ca marche le man de getch
 
2°/ si tu voulais plutôt utiliser getchar, alors stdio.h suffit.
 
> man getchar
 
si si si, ca marche aussi.
GUG ou alors si vous connaisser un plus simple a la win comme dev c++ 4
GUG bon j ai installer kdevlop pour m en serveir en tant que editeur/compilateur c/cc++(j en ai baver avec toute les librairies a installer )  
 
 qd je fait new project et create ca fait sh: kdoc: command not found mais y dit ready ...
 
j essaye alors un ptit prog en C  
 
________________
#include <stdio.h>
 
int main()
 
{
printf("connard" );
getch();
}
 
________________________________
 
je fait compîler y dit success  
 
et apres que je fasse make rebuild ou run y me fait failed  
avec plein d error  
 
_________________________________
*** success ***
make  all-recursive
make[1]: Entering directory `/home/gug/test_4'
Making all in test_4
make[2]: Entering directory `/home/gug/test_4/test_4'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/include/qt -I/usr/X11R6/include     -O2  -O0 -g3 -Wall -c test_4.c
test_4.c: In function `main':
test_4.c:24: warning: implicit declaration of function `getch'
test_4.c:25: warning: control reaches end of non-void function
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/include/qt -I/usr/X11R6/include     -O2 -O0 -g3 -Wall -fno-exceptions -fno-check-new  -c test_4view.cpp
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/include/qt -I/usr/X11R6/include     -O2 -O0 -g3 -Wall -fno-exceptions -fno-check-new  -c test_4doc.cpp
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/include/qt -I/usr/X11R6/include     -O2 -O0 -g3 -Wall -fno-exceptions -fno-check-new  -c main.cpp
/usr/bin/moc ./test_4view.h -o test_4view.moc.cpp
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/include/qt -I/usr/X11R6/include     -O2 -O0 -g3 -Wall -fno-exceptions -fno-check-new  -c test_4view.moc.cpp
/usr/bin/moc ./test_4doc.h -o test_4doc.moc.cpp
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/include/qt -I/usr/X11R6/include     -O2 -O0 -g3 -Wall -fno-exceptions -fno-check-new  -c test_4doc.moc.cpp
/usr/bin/moc ./test_4.h -o test_4.moc.cpp
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/include/qt -I/usr/X11R6/include     -O2 -O0 -g3 -Wall -fno-exceptions -fno-check-new  -c test_4.moc.cpp
creating test_4_meta_unload.cpp
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/include/qt -I/usr/X11R6/include     -O2 -O0 -g3 -Wall -fno-exceptions -fno-check-new  -c test_4_meta_unload.cpp
/bin/sh ../libtool --mode=link --tag=CXX c++  -O2 -O0 -g3 -Wall -fno-exceptions -fno-check-new   -o test_4 -L/usr/X11R6/lib -L/usr/lib  -R /usr/lib -R /usr/X11R6/lib test_4.o test_4view.o test_4doc.o test_4.o main.o test_4view.moc.o test_4doc.moc.o test_4.moc.o test_4_meta_unload.o  -lqt -lpng -lz -lm -ljpeg -lXext -lX11 -lresolv -lSM -lICE -lkdecore -lkdeui -lkfile  -lresolv  
mkdir .libs
c++ -O2 -O0 -g3 -Wall -fno-exceptions -fno-check-new -o test_4 test_4.o test_4view.o test_4doc.o test_4.o main.o test_4view.moc.o test_4doc.moc.o test_4.moc.o test_4_meta_unload.o  -L/usr/X11R6/lib -L/usr/lib -lresolv -L/usr/lib/gcc-lib/i386-linux/2.95.4 -lresolv -lresolv /usr/lib/libkfile.so /usr/lib/libksycoca.so /usr/lib/libkio.so /usr/lib/libkdesu.so -lutil /usr/lib/libkssl.so /usr/lib/libkdeui.so /usr/lib/libkdecore.so -ldl /usr/lib/libDCOP.so -lqt -lpng -ljpeg -lXext -lX11 -lSM -lICE -lresolv -lXinerama -lz -lstdc++ -lm -lc -lgcc -lresolv -Wl,--rpath -Wl,/usr/lib -Wl,--rpath -Wl,/usr/X11R6/lib
test_4.o: In function `main':
/home/gug/test_4/test_4/test_4.c(.text+0x0): multiple definition of `main'
test_4.o(.text+0x0):/home/gug/test_4/test_4/test_4.c: first defined here
main.o: In function `main':
/home/gug/test_4/test_4/main.cpp(.text+0x0): multiple definition of `main'
test_4.o(.text+0x0):/home/gug/test_4/test_4/test_4.c: first defined here
/usr/bin/ld: Warning: size of symbol `main' changed from 29 to 691 in main.o
test_4.o: In function `main':
/home/gug/test_4/test_4/test_4.c:24: undefined reference to `getch'
test_4view.o: In function `Test_4View::getDocument(void) const':
/home/gug/test_4/test_4/test_4view.cpp:40: undefined reference to `Test_4App::getDocument(void) const'
test_4doc.o: In function `Test_4Doc::saveModified(void)':
/home/gug/test_4/test_4/test_4doc.cpp:98: undefined reference to `Test_4App::slotFileSaveAs(void)'
test_4.o: In function `main':
/home/gug/test_4/test_4/test_4.c:24: undefined reference to `getch'
main.o: In function `main':
/home/gug/test_4/test_4/main.cpp:50: undefined reference to `Test_4App::Test_4App(int, QWidget *, char const *)'
/home/gug/test_4/test_4/main.cpp:54: undefined reference to `Test_4App::Test_4App(int, QWidget *, char const *)'
/home/gug/test_4/test_4/main.cpp:61: undefined reference to `Test_4App::openDocumentFile(KURL const &)'
/home/gug/test_4/test_4/main.cpp:65: undefined reference to `Test_4App::openDocumentFile(KURL const &)'
test_4.moc.o: In function `Test_4App::staticMetaObject(void)':
/home/gug/test_4/test_4/test_4.moc.cpp:89: undefined reference to `Test_4App::slotFileNewWindow(void)'
/home/gug/test_4/test_4/test_4.moc.cpp:91: undefined reference to `Test_4App::slotFileNew(void)'
/home/gug/test_4/test_4/test_4.moc.cpp:93: undefined reference to `Test_4App::slotFileOpen(void)'
/home/gug/test_4/test_4/test_4.moc.cpp:95: undefined reference to `Test_4App::slotFileOpenRecent(KURL const &)'
/home/gug/test_4/test_4/test_4.moc.cpp:97: undefined reference to `Test_4App::slotFileSave(void)'
/home/gug/test_4/test_4/test_4.moc.cpp:99: undefined reference to `Test_4App::slotFileSaveAs(void)'
/home/gug/test_4/test_4/test_4.moc.cpp:101: undefined reference to `Test_4App::slotFileClose(void)'
/home/gug/test_4/test_4/test_4.moc.cpp:103: undefined reference to `Test_4App::slotFilePrint(void)'
/home/gug/test_4/test_4/test_4.moc.cpp:105: undefined reference to `Test_4App::slotFileQuit(void)'
/home/gug/test_4/test_4/test_4.moc.cpp:107: undefined reference to `Test_4App::slotEditCut(void)'
/home/gug/test_4/test_4/test_4.moc.cpp:109: undefined reference to `Test_4App::slotEditCopy(void)'
/home/gug/test_4/test_4/test_4.moc.cpp:111: undefined reference to `Test_4App::slotEditPaste(void)'
/home/gug/test_4/test_4/test_4.moc.cpp:113: undefined reference to `Test_4App::slotViewToolBar(void)'
/home/gug/test_4/test_4/test_4.moc.cpp:115: undefined reference to `Test_4App::slotViewStatusBar(void)'
/home/gug/test_4/test_4/test_4.moc.cpp:117: undefined reference to `Test_4App::slotStatusMsg(QString const &)'
test_4.moc.o: In function `Test_4App::metaObject(void) const':
/usr/include/qt/qcstring.h(.gnu.linkonce.t.__thunk_248__._9Test_4App+0x9): undefined reference to `Test_4App::~Test_4App(void)'
/usr/include/qt/qcstring.h(.gnu.linkonce.t.__thunk
_120__._9Test_4App+0x6): undefined reference to `Test_4App::~Test_4App(void)'
/usr/include/qt/qcstring.h(.gnu.linkonce.t.__thunk
_36__._9Test_4App+0x6): undefined reference to `Test_4App::~Test_4App(void)'
/usr/include/qt/qcstring.h(.gnu.linkonce.d.__vt_9Test_4App+0x8): undefined reference to `Test_4App::~Test_4App(void)'
test_4.moc.o: In function `Test_4App::staticMetaObject(void)':
/home/gug/test_4/test_4/test_4.moc.cpp:93: undefined reference to `Test_4App::queryExit(void)'
/home/gug/test_4/test_4/test_4.moc.cpp:93: undefined reference to `Test_4App::queryClose(void)'
/home/gug/test_4/test_4/test_4.moc.cpp:93: undefined reference to `Test_4Amake[2]: Leaving directory `/home/gug/test_4/test_4'
make[1]: Leaving directory `/home/gug/test_4'
pp::saveProperties(KConfig *)'
/home/gug/test_4/test_4/test_4.moc.cpp:93: undefined reference to `Test_4App::readProperties(KConfig *)'
collect2: ld returned 1 exit status
make[2]: *** [test_4] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2
*** failed ***
______________________________________________

Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)