Thread: [Dev-C++] Probs with opengl in Dev c++ 4.9.8.1 (Latest version)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Prathmesh M. <P.M...@mu...> - 2003-09-20 08:09:28
|
Hi all, I have recently downloaded the latest version of Dev C++ 4.9.8.1. = Now, I m trying to configure opengl with it, but I m facing problems and = cant compile my programs. Some sites advise to paste the foll. line = "-lopengl32 -lglu32 -lglut32" in the box "Further object files or linker = options", which is supposed to be found in Project --> Project Options = menu. But I cant find that box "Further object files or linker options" = in the latest version. So could anybody plz suggest me an alternate way = of setting up opengl properly in this new version? Many thanks to all in = advance for your time and effort. |
|
From: DarkSaidin <ma...@da...> - 2003-09-20 13:05:52
|
Prathmesh Mahidharia wrote: > Hi all, > I have recently downloaded the latest version of Dev C++ 4.9.8.1. Now, I m trying to configure opengl with it, but I m facing problems and cant compile my programs. Some sites advise to paste the foll. line "-lopengl32 -lglu32 -lglut32" in the box "Further object files or linker options", which is supposed to be found in Project --> Project Options menu. But I cant find that box "Further object files or linker options" in the latest version. So could anybody plz suggest me an alternate way of setting up opengl properly in this new version? Many thanks to all in advance for your time and effort. > Project (menu) -> Project Options (menu entry) -> Parameter (tab) -> Linker (first box on the right, the one with the button below it) The parameters you mentioned will tell the linker to link the libraries opengl32, glu32, glut32 which are stored in you lib folder as libopengl32.a, libglu32.a etc... You could also click the button "Add object/library" and add them manually with their full name. |
|
From: Prathmesh M. <P.M...@mu...> - 2003-09-22 07:16:31
|
Hi there, I m trying to compile and run an opengl source code in Dev c++, but it does not compile. I m using glut commands. But every time I run it gives me linker error undefined reference to glut commands. I included all the libs in the linker box, but still it gives all the probs. Can anybody plz suggest a solution here? Also, what type of project should i select if i need to build an opengl program? Wind32 or console application? and in each opengl program, do i need to include "#inlcude<windows.h>"? If i do, then it does not remain platform compatible any more, meaning i cant run it on linux then and opengl was meant to be platform independent. Plz help. |
|
From: <or...@vp...> - 2003-09-22 19:43:06
|
Prathmesh Mahidharia wrote: > Hi there, > I m trying to compile and run an opengl source code in Dev c++, but it > does not compile. I m using glut commands. But every time I run it gives me > linker error undefined reference to glut commands. I included all the libs > in the linker box, but still it gives all the probs. Can anybody plz suggest > a solution here? Also, what type of project should i select if i need to > build an opengl program? Wind32 or console application? and in each opengl > program, do i need to include "#inlcude<windows.h>"? If i do, then it does > not remain platform compatible any more, meaning i cant run it on linux then > and opengl was meant to be platform independent. Plz help. Can you post us the errors you get, the project file of your project, the sources, code snippets, anything that can be examined? That would be very useful! -- Greetings, Balázs |
|
From: William Mc C. <WIL...@ms...> - 2003-09-22 22:22:04
|
Hi Guy's.
I'm new to 'C' (NEWBIE). My question! Has anybody ever gotten the "BEEP" =
function to work in a console program?
Both of the books I'm reading, state by using the '\07' parameter in a =
printf function will ring the system Bell.
I'v tried using DEV-C++ (GCC) & also the WIN32 compilers, with no =
results. My OS is XP home edition.
Thanks.=20
Everyone have a nice day.=20
William =20
|
|
From: Per W. <pw...@ia...> - 2003-09-23 06:12:51
|
Note that "\a" stands for 'attention' and is the beep character (ctrl-G)
which is the same as your "\07" character.
And yes it works. But isn't really a beep but a short ping.
/Per W
#include <stdio.h>
int main(void) {
printf("\a"); /* emit first beep */
printf("\07"); /* emit second beep */
return 0;
}
On Mon, 22 Sep 2003, William Mc Coy wrote:
> Hi Guy's.
>
> I'm new to 'C' (NEWBIE). My question! Has anybody ever gotten the "BEEP" function to work in a console program?
>
> Both of the books I'm reading, state by using the '\07' parameter in a printf function will ring the system Bell.
>
> I'v tried using DEV-C++ (GCC) & also the WIN32 compilers, with no results. My OS is XP home edition.
>
> Thanks.
> Everyone have a nice day.
>
> William
>
|
|
From: Michal M. <mol...@se...> - 2003-09-20 14:54:38
|
Prathmesh Mahidharia wrote: > options", which is supposed to be found in Project --> Project Options > menu. But I cant find that box "Further object files or linker options" > in the latest version. So could anybody plz suggest me an alternate way try Project\Project Options\Parameters tab a write to the Linker box |
|
From: Brion K. <bri...@bi...> - 2003-09-23 06:10:36
|
#include <iostream>
using std::cout;
int main (void)
{
cout << "\t\07\nhere comes the bell\n\n";
system("PAUSE");
return(0);
}
Hi William, This works for me.
Brion
----- Original Message -----
From: William Mc Coy
To: dev...@li...
Sent: Tuesday, September 23, 2003 8:21 AM
Subject: [Dev-C++] Re: Ring Bell (BEEP)
Hi Guy's.
I'm new to 'C' (NEWBIE). My question! Has anybody ever gotten the "BEEP"
function to work in a console program?
Both of the books I'm reading, state by using the '\07' parameter in a
printf function will ring the system Bell.
I'v tried using DEV-C++ (GCC) & also the WIN32 compilers, with no results.
My OS is XP home edition.
Thanks.
Everyone have a nice day.
William
|