Thread: [Dev-C++] (no subject) (Page 7)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: Charles C. <can...@ho...> - 2002-10-25 00:33:25
|
After linking, i get an error like C:\DEV-C++\LIB\\libmingw32.a(main.o)(.text+0x8e): undefine... `WinMain@16' probably haven't declared any main() or WinMain() func... program. I am still have problems the main() have been declard This is the small program i was using just make sure everting was working right. My first time to use allegro with Dev-c++. #include "allegro.h" int main() { allegro_init(); allegro_message("hello world!"); return 0; } END_OF_MAIN(); Can you help! _________________________________________________________________ Surf the Web without missing calls! Get MSN Broadband. http://resourcecenter.msn.com/access/plans/freeactivation.asp |
From: Abhijit S. <mu...@gm...> - 2002-10-25 12:11:46
|
Greets, Charles. > After linking, i get an error like > C:\DEV-C++\LIB\\libmingw32.a(main.o)(.text+0x8e): undefine... > `WinMain@16' > probably haven't declared any main() or WinMain() func... > program. > > I am still have problems the main() have been declard > > This is the small program i was using just make sure everting was working > right. My first time to use allegro with Dev-c++. > #include "allegro.h" > > int main() > { > allegro_init(); > allegro_message("hello world!"); > return 0; > } > END_OF_MAIN(); > > Can you help! Try #include'ing <winalleg.h> right after <allegro.h>. ___________________________________________________________ Abhijit Shylanath E-mail: mu...@gm... || ibr...@bi... Web-site: http://mudeth.tripod.com/ |
From: <Rm...@ao...> - 2002-10-27 21:16:35
|
confirm 429973 |
From: Per W. <pw...@ia...> - 2002-10-27 21:52:44
|
Ah, I don't think you really read the information in the received mail. It wasn't to this address that you was supposed to send your request. I don't have the exact name infront of me, but it was something like dev-cpp-users-request@... /Per W On Sun, 27 Oct 2002 Rm...@ao... wrote: > confirm 429973 > |
From: Percy <pb...@te...> - 2002-11-01 19:58:34
|
Hi there, I need some examples on how to make a dll and use that under Visual Basic. Please, I´m new with this stuff, so any help would be great. Thanks, Percy |
From: xiaoqiang <lil...@so...> - 2002-11-19 12:51:54
Attachments:
Face-7.gif
|
dGh4IQ0KDQogCQkJCQ0KoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoXhpYW9xaWFuZw0KoaGh oaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoWxpbGFveWFvQHNvaHUuY29tDQqhoaGhoaGhoaGhoaGh oaGhoaGhoaGhoaGhoaGhoaGhoaGhMjAwMi0xMS0xOQ0K |
From: <pa...@rd...> - 2002-11-26 10:36:34
|
SGVsbG8uLi4NCg0KICAgICAgICBBbnlvbmUgY2FuIHRlbGwgbWUgaG93IHRvIGdldCBoYXJkaXNr IGRhdGEgZGlyZWN0bHksIGJ1dCBub3QgYWNjZXNzIGl0IHRocm91Z2ggb25lIHBhcnRpdGlvbi4u Li4NCiAgICAgICANCiAgICAgICAgSSBob3BlIHRoYXQgSSBjYW4gZ2V0IGRhdGEgZnJvbSBvbmUg aGFyZGRpc2soIG1heWJlIGhhdmUgbWFueSBwYXJ0aXRpb25zLi4uKQ0KDQogICAgICAgIGFuZCBo b3cgPw0KDQogICAgICAgDQoNCiAgICAgICANCg== |
From: MisterE <Mis...@zo...> - 2003-01-02 13:12:19
Attachments:
menu_two.zip
|
Hello dev-cpp-users, i have a question, probably very simple. I'm a delphi programmer, but now i have discovered Dev-C++ i'm spending some time with c++. So i've downloaded "the Forger's api tutorial" (http://www.winprog.org/tutorial/index.html) and some tutorials: www.cprogramming.com Now the question :) i'm trying to create the "forger's" examples with dev-c++ (because msvc++ is much to confusing with all those wizards) the "simple_window" and "window_click" did work fine. I'm now working on the chapter "Menus and Icons" but dev-C++ does not want to compile it. i succeeded to create a window with a menu, but now want it to do something when the user pressing a item. I thought i typed something wrong but i have tried to compile the original example (with import msvc project) but dev-C++ refuse to compile it. i've included to original example (from theForger) Hope someone can help me... Thanks in advance! The errors are: C:\Temp\menu_two\menu_two.c [Warning] In function `LRESULT WndProc(HWND__*, unsigned int, unsigned int,: 29 C:\Temp\menu_two\menu_two.c invalid conversion from `void*' to `HICON__*' 35 C:\Temp\menu_two\menu_two.c invalid conversion from `void*' to `HICON__*' C:\Temp\menu_two\Makefile.win [Build Error] [menu_two.o] Error 1 in case that attachments are 'stripped' #include <windows.h> #define ID_FILE_EXIT 9001 #define ID_STUFF_GO 9002 const char g_szClassName[] = "myWindowClass"; LRESULT CALLBACK WndProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam) { switch(Message) { case WM_CREATE: { HMENU hMenu, hSubMenu; HICON hIcon, hIconSm; hMenu = CreateMenu(); hSubMenu = CreatePopupMenu(); AppendMenu(hSubMenu, MF_STRING, ID_FILE_EXIT, "E&xit"); AppendMenu(hMenu, MF_STRING | MF_POPUP, (UINT)hSubMenu, "&File"); hSubMenu = CreatePopupMenu(); AppendMenu(hSubMenu, MF_STRING, ID_STUFF_GO, "&Go"); AppendMenu(hMenu, MF_STRING | MF_POPUP, (UINT)hSubMenu, "&Stuff"); SetMenu(hwnd, hMenu); hIcon = LoadImage(NULL, "menu_two.ico", IMAGE_ICON, 32, 32, LR_LOADFROMFILE); if(hIcon) SendMessage(hwnd, WM_SETICON, ICON_BIG, (LPARAM)hIcon); else MessageBox(hwnd, "Could not load large icon!", "Error", MB_OK | MB_ICONERROR); hIconSm = LoadImage(NULL, "menu_two.ico", IMAGE_ICON, 16, 16, LR_LOADFROMFILE); if(hIconSm) SendMessage(hwnd, WM_SETICON, ICON_SMALL, (LPARAM)hIconSm); else MessageBox(hwnd, "Could not load small icon!", "Error", MB_OK | MB_ICONERROR); } break; case WM_COMMAND: switch(LOWORD(wParam)) { case ID_FILE_EXIT: PostMessage(hwnd, WM_CLOSE, 0, 0); break; case ID_STUFF_GO: MessageBox(hwnd, "You clicked Go!", "Woo!", MB_OK); break; } break; case WM_CLOSE: DestroyWindow(hwnd); break; case WM_DESTROY: PostQuitMessage(0); break; default: return DefWindowProc(hwnd, Message, wParam, lParam); } return 0; } int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { WNDCLASSEX wc; HWND hwnd; MSG Msg; wc.cbSize = sizeof(WNDCLASSEX); wc.style = 0; wc.lpfnWndProc = WndProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = hInstance; wc.hIcon = NULL; wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); wc.lpszMenuName = NULL; wc.lpszClassName = g_szClassName; wc.hIconSm = NULL; if(!RegisterClassEx(&wc)) { MessageBox(NULL, "Window Registration Failed!", "Error!", MB_ICONEXCLAMATION | MB_OK); return 0; } hwnd = CreateWindowEx( WS_EX_CLIENTEDGE, g_szClassName, "A Menu #2", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 240, 120, NULL, NULL, hInstance, NULL); if(hwnd == NULL) { MessageBox(NULL, "Window Creation Failed!", "Error!", MB_ICONEXCLAMATION | MB_OK); return 0; } ShowWindow(hwnd, nCmdShow); UpdateWindow(hwnd); while(GetMessage(&Msg, NULL, 0, 0) > 0) { TranslateMessage(&Msg); DispatchMessage(&Msg); } return Msg.wParam; } -- Best regards, MisterE mailto:Mis...@zo... |
From: jon w. <wei...@ho...> - 2003-01-06 01:54:56
|
hi.i'd like to take part of you. _________________________________________________________________ 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn |
From: John H. <joh...@ho...> - 2003-01-07 10:49:55
|
<html><div style='background-color:'><DIV> <DIV> <DIV></DIV> <DIV></DIV>ive tried compling opengl code in dev c++ and you just get loads of syntax errors and linker errors. the code is garunteed to be correct. do i need to set up gl library files in the compiler options?<BR><BR>email bk plz. <DIV></DIV></DIV></DIV></div><br clear=all><hr>Help STOP SPAM: Try the new MSN 8 and <a href="http://g.msn.com/8HMHEN/2016">get 2 months FREE*</a> </html> |
From: Tamas C. <ma...@ma...> - 2003-01-07 15:05:29
|
John Hall wrote: > ive tried compling opengl code in dev c++ and you just get loads of > syntax errors and linker errors. the code is garunteed to be correct. do > i need to set up gl library files in the compiler options? > you should add to the linker settings in the project options dialog -lglu32 -lopengl32 (and if you use glut:) -lglut32 if you use glut try to compile it as win32 console, else as a win32 GUI application check the header #includes at the top of program because it is possible that there are missing the "gl/" pathes : #include <gl/gl.h> correctly, not <gl.h> (this applies for glu.h and glut.h too) Tamas Czinege |
From: Senthil K. <Ph...@go...> - 2003-01-10 08:51:19
|
Hi All, I have always wondered about this Debugger gdb. Can any one help me with it. How to use in command line interface as well. After using gcc. Thanks for your help and assistance. Regards, Senthil It is the nature of man to rise to greatness if greatness is expected of him. - John Steinbeck ___________________________________________________ GO.com Mail Get Your Free, Private E-mail at http://mail.go.com |
From: Luigi S. <gi...@li...> - 2003-01-10 18:09:57
|
On Thu, Jan 09, 2003 at 11:58:16PM -0800, Senthil Kumaran wrote: > Hi All, > I have always wondered about this Debugger gdb. > Can any one help me with it. > How to use in command line interface as well. > After using gcc. > Thanks for your help and assistance. > Regards, > Senthil Hi! Sometime ago I answered a similar question, so did some mining in my mail folder and came up with a sort of tiny tutorial written in the form of an HTML file. Not willing to post HTML code to the list, I placed it on the site: www.gisan.freeurl.com (once there follow the link to the "gdb tutorial") The information related to the integrated debugger is now obsolete (I wrote the document when DevC++ 4.9.3.0 was around), however the rest should still be valid. -- >> gisan >> |
From: <tcq...@so...> - 2003-01-11 14:02:52
|
Hi I am a Chinese.I have learn c++ a short time. Can you tell me what book can I read? Oh ,I have a problem how can I use the "time" class? Thank you ! Yours' li |
From: Ioannis V. <no...@ho...> - 2003-01-11 14:40:12
|
"Accelerated C++" by Andrew Koenig, Barbara Moo.=0D =0D =0D =0D Ioannis Vranos=0D =0D * Programming pages: http://www.noicys.freeurl.com=0D * Alternative URL: http://run.to/noicys =0D =0D =0D -------Original Message-------=0D =0D From: tcq...@so...=0D Date: =D3=DC=E2=E2=E1=F4=EF, 11 =C9=E1=ED=EF=F5=DC=F1=E9=EF=F2 2003 4:04:= 52 =EC=EC=0D To: dev...@li...=0D Subject: [Dev-C++] (no subject)=0D =0D Hi=0D I am a Chinese.I have learn c++ a short time.=0D Can you tell me what book can I read?=0D Oh ,I have a problem how can I use the "time" class?=0D Thank you ! Yours' li |
From: Anindita S. <asa...@ya...> - 2003-01-19 22:35:55
|
Hi: I am new user of Dev C++. I am using the latest beta version Dev C++ 5.0. From the download page screen shot it seems one can create subfolders in a project. I want to know how can I add directories to the project like in JBuilder IDE for Java. Any help in this regard is appreciated. Thanks Pitambar |
From: Per W. <pw...@ia...> - 2003-01-19 22:42:07
|
In your project window, right-click on the topmost line - the one representing your target. Select 'Add folder'. /Per W On Sun, 19 Jan 2003, Anindita Sarangi wrote: > Hi: > I am new user of Dev C++. I am using the latest beta version Dev C++ 5.0. > >From the download page screen shot it seems one can create subfolders in a project. I want to know how can I add directories to the project like in JBuilder IDE for Java. Any help in this regard is appreciated. > Thanks > Pitambar > > |
From: Hari k. <n_h...@ho...> - 2003-01-26 04:27:40
|
confirm 109353 |
From: Michael S. <mic...@nu...> - 2003-01-27 08:48:09
|
Dev-Cpp 4.9.7.0. don=B4t find my librairies any more. When trying to compile a SDL-Project, for example, the compiler output = is as followed: Compiler: Default compiler Building Makefile: "E:\Eigene = Dateien\C++\DevC++\SDLTemplate\Makefile.win" F=FChrt make... aus make.exe -f "E:\Eigene Dateien\C++\DevC++\SDLTemplate\Makefile.win" all g++.exe Main.o -o "Template.exe" -L"C:/dev/Dev-Cpp/lib" = -L"C:/dev/wx/lib" -L"C:/dev/wx/contrib/lib" -L"C:/dev/SDL/lib" SDL.lib = SDL_main.lib -I"C:/dev/Dev-Cpp/include" -I"C:/dev/Dev-Cpp/include/c++" = -I"C:/dev/Dev-Cpp/include" -I"C:/dev/Dev-Cpp/include/c++/mingw32" = -I"C:/dev/wx/include" -I"C:/dev/wx/contrib/include" = -I"C:/dev/SDL/include" -I"C:/dev/wx/lib/mswd" =20 g++.exe: SDL.lib: No such file or directory g++.exe: SDL_main.lib: No such file or directory make.exe: *** [Template.exe] Error 1 The problem is that the files "SDL_lib" and "SDLmain.lib" ARE in = c:\dev\sdl\lib I entered the path in the "global" directory-settings to apply for all = projects. If I compile other projects, for example wxWindows, the linker does the = same, it doesn=B4t find the librairies although the correct paths are specified Perhaps Dev-C++ calls the linker with bad arguments What could be the reason for this? |
From: Per W. <pw...@ia...> - 2003-01-27 08:56:14
|
Did you spell correctly - note that you speciferent names in your text, compared to the names emitted on the compiler command. /Per W On Mon, 27 Jan 2003, Michael Stather wrote: > Dev-Cpp 4.9.7.0. don=B4t find my librairies any more. > When trying to compile a SDL-Project, for example, the compiler output is= as followed: > > Compiler: Default compiler > Building Makefile: "E:\Eigene Dateien\C++\DevC++\SDLTemplate\Makefile.win= " > F=FChrt make... aus > make.exe -f "E:\Eigene Dateien\C++\DevC++\SDLTemplate\Makefile.win" all > g++.exe Main.o -o "Template.exe" -L"C:/dev/Dev-Cpp/lib" -L"C:/dev/wx/lib= " -L"C:/dev/wx/contrib/lib" -L"C:/dev/SDL/lib" SDL.lib SDL_main.lib -I"C:/d= ev/Dev-Cpp/include" -I"C:/dev/Dev-Cpp/include/c++" -I"C:/dev/Dev-Cpp/incl= ude" -I"C:/dev/Dev-Cpp/include/c++/mingw32" -I"C:/dev/wx/include" -I"C:/= dev/wx/contrib/include" -I"C:/dev/SDL/include" -I"C:/dev/wx/lib/mswd" > > g++.exe: SDL.lib: No such file or directory > g++.exe: SDL_main.lib: No such file or directory > > make.exe: *** [Template.exe] Error 1 > > The problem is that the files "SDL_lib" and "SDLmain.lib" ARE in c:\dev\s= dl\lib > I entered the path in the "global" directory-settings to apply for all pr= ojects. > If I compile other projects, for example wxWindows, the linker does the s= ame, it doesn=B4t find the librairies > although the correct paths are specified > > Perhaps Dev-C++ calls the linker with bad arguments > What could be the reason for this? |
From: Jeremy P. <jpe...@ea...> - 2003-01-29 17:38:20
|
What the heck do I have to do to get a program to compile in Dev-C++ 5? It compiles fine in dev-C++4. When I install DC++5 and then try compiling I get a bunch of errors. I found out that it is because there are not sufficient libraries in the include directory such as iostream. I transplanted my libraries from DC++4 and all the errors go away except for 3..it does not recognize std::cout, std::cin, or std::endl. Is there some thing I have to do to get the correct library files in my include directory so my programs will compile? Jeremy Petzold AIM: modmans2ndcoming |
From: Parminder S. G. <par...@po...> - 2003-02-15 10:22:39
|
hi all, i have just downloaded and installed Dev-C++ 5.0 beta 7 (4.9.7.0) (10 MB) with Mingw/GCC 2.95.3 on Win XP system. the install went fine except that all the menus in the editor are in a language other than english & since i cannot follow them, i am u nable to use the program. anybody can tell me how to switch everything back to english??? thanx, Parminder par...@po... |
From: Adam M. <up...@in...> - 2003-02-15 10:58:01
|
Hi. It's quite simple if you know langueage but in your case just follow my directions. 1. Select menu item (Tools) fourth from right side. 2. Then select second subitem (Environment options). You'll see dialog box. This is environment setup box. 3. Click on the second tab (Interface). 4. Click on combo box at top right corner (language). 5. Select appropriate language. Endglish should be written originally i mean "English" but if not this is 8th item in this combo. 6. Click second button (OK) from right sid at the bootom of dialog box. Hope it'll help. upanie. ----- Original Message ----- From: "Parminder Singh Gupta" <par...@po...> To: <dev...@li...> Sent: Saturday, February 15, 2003 11:21 AM Subject: [Dev-C++] (no subject) > hi all, > i have just downloaded and installed Dev-C++ 5.0 beta 7 (4.9.7.0) (10 > MB) with Mingw/GCC 2.95.3 on Win XP system. the install went fine > except that all the menus in the editor are in a language other than > english & since i cannot follow them, i am u nable to use the program. > anybody can tell me how to switch everything back to english??? > thanx, > Parminder > par...@po... > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > ---------------------------------------------------------------------- > Powiedz sobie dobre "Dzien dobry"! >>> http://link.interia.pl/f168b > > > |
From: Brion & S. K. <bs...@bi...> - 2003-03-02 00:13:35
|
HI, I am fairly new to C++, I have been unable to get my Dev-C++ = 4.9.7.6 compiler to compile any file I have put into it=20 |
From: <cg...@wo...> - 2003-03-02 17:42:59
|
Have you set the x directories (x = library, include...)?And the programs? At compiler options. Brion & Sharon Kirby wrote: > HI, I am fairly new to C++, I have been unable to get my Dev-C++ > 4.9.7.6 compiler to compile any file I have put into it |