Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: HI folks, I am totally new

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2002
    Location
    Moses Lake WA USA
    Posts
    18

    HI folks, I am totally new

    I have read a few books, I also had about 3 months of C++ in school.
    I own Borland C++ 4.5.
    I want to know how I can link that
    with OpenGL
    How do I use the OpenGL files,
    I know that Borland C++ 4.5 has GL files in it.
    How do I set up my compiler to do that.
    Thanks

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,068

    Re: HI folks, I am totally new

    If you know the borland compiler, just add the openGL lib's to the linker settings: opengl.lib, glu.lib, glut.lib(if used).

    Then go to nehe.gamedev.net and download some of openGL tutor's programs writen for the borland compiler.

    also can do a search for sites that support it also.


    Originally posted by Danishviking02:

    I have read a few books, I also had about 3 months of C++ in school.
    I own Borland C++ 4.5.
    I want to know how I can link that
    with OpenGL
    How do I use the OpenGL files,
    I know that Borland C++ 4.5 has GL files in it.
    How do I set up my compiler to do that.
    Thanks

  3. #3
    Junior Member Newbie
    Join Date
    Aug 2002
    Location
    Moses Lake WA USA
    Posts
    18

    Re: HI folks, I am totally new

    OK I hear you,
    But, where do I change the linker settings
    Do you mean the project settings
    which is above the environment settings
    (I am hoping you are someone with Borland C++ 4.5)
    where it says C:\bc45\include
    C:\bc45\lib ????
    thanks

  4. #4

    Re: HI folks, I am totally new

    Not exactly, those tell the compiler where to look for the libraries and includes but there should be something to do with Link or Linker settings that have a list of *.lib files. This is where you need to place the gl libraries. I haven't got my Borland C++ installed as I'm using Visual C++ at the mo, so can't be exactly sure whereabouts this option is.

    Tina
    Learning OpenGL while working on sourceforge projects:
    https://sourceforge.net/projects/simulant/ and
    https://sourceforge.net/projects/projectnova/

  5. #5
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,068

    Re: HI folks, I am totally new

    If Borland is like most look under compiler menu and settings.
    In the settings should be a liker options.


    C:\bc45\include
    C:\bc45\lib
    These directory's are where the files are stored, but does not tell the compiler which ones to use though.
    Most program are set to look for openGL includes files in a GL folder.

    example:
    C:\bc45\include\GL


    Originally posted by Danishviking02:

    OK I hear you,
    But, where do I change the linker settings
    Do you mean the project settings
    which is above the environment settings
    (I am hoping you are someone with Borland C++ 4.5)
    where it says C:\bc45\include
    C:\bc45\lib ????
    thanks

  6. #6
    Junior Member Newbie
    Join Date
    Aug 2002
    Location
    Moses Lake WA USA
    Posts
    18

    Re: HI folks, I am totally new

    OK folks, I think I have figured out how to access the linker with Borland C++
    4.5

    I just learned how to use the start run
    button on my windows task bar.
    I learned how to access TASM 5.2
    I learned how to access tlink.
    Is TLINK the linker I need to link the APIs?

    If it is, what is the syntax I need to link stuff?

    You might have already said.

    thanks

  7. #7
    Junior Member Newbie
    Join Date
    Aug 2002
    Posts
    5

    Re: HI folks, I am totally new

    TLINK is the linker which you use to link your objects you assembled with TASM. That means, you could make an .exe of your asm-code. but to link other stuff (like APIs) in your C-program, you should use the linker of cour C-compiler.

  8. #8
    Junior Member Newbie
    Join Date
    Aug 2002
    Location
    Moses Lake WA USA
    Posts
    18

    Re: HI folks, I am totally new

    thanks hollowcoder!

    I just would like to know where I find such linker,
    Thats my problem,
    where is that linker,
    I would like to know.
    Can you tell me where it is,
    Thanks buddy

  9. #9
    Member Newbie
    Join Date
    Aug 2002
    Posts
    42

    Re: HI folks, I am totally new

    This has got to be a joke.

    - Programming for only a few months.
    - Just learned how to use start->run.

    My suggestion is that you aren't yet ready for OpenGL. Come back in a few months when you've learned to use your computer.

    If you insist on attempting OpenGL, you should learn a little about how your compiler works. First, your .cpp files are compiled down to object files. Next, those object files are all linked into a single binary, usually a .exe or .dll.

    Both of these steps are usually performed behind the scenes by the compiler. What you need is to find the project settings for adding additional libraries to be linked in the linker step. This is going to be found somewhere within the IDE for Borland C++. Once you set this project setting, you won't have any additional steps to perform when compiling. You won't be needing to use TLINK, or TASM, or any other app outside of the IDE.

    One other thing that should be cleared up. You'll want to link in opengl32.lib and glu32.lib not opengl.lib and glu.lib. The 32 versions are the ones that windows uses and if you use the ones w/o the 32 you will be linking to totally different DLLs, which you may not even have.

    BTW, what I said about linking to DLLs should probably be explained somewhat. Those .lib files basically contain information for the entry points into those DLLs. When your app runs, it can then use those DLLs so that the code doesn't need to be compiled directly into the .exe.

  10. #10
    Junior Member Newbie
    Join Date
    Aug 2002
    Location
    Moses Lake WA USA
    Posts
    18

    Re: HI folks, I am totally new

    I learn by using,
    I dont press a billion different buttons, I just simply map things out,
    Otherwise how will I find it.
    Dont tell me I dont know how to use my computer.
    I appreciate the other advice you gave me.
    There a combination of things I want to do with my compiler.

    I was only asking about link settings.
    I wasnt sure if the tlink was the right one,
    someone was nice enough to tell me it wasnt, I am use to VC++.
    But I dont like some of the stuff it does.
    I dont need people to tell me that I cant use my computer,
    I am asking for help.
    I know how to use DOS

Page 1 of 2 12 LastLast

Similar Threads

  1. Shader fails totally (but no error) on changes
    By MarcusL in forum OpenGL: GLSL
    Replies: 2
    Last Post: 11-11-2009, 03:49 AM
  2. Replies: 7
    Last Post: 02-04-2005, 12:57 AM
  3. Totally new
    By Bozzie in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 06-03-2004, 06:19 AM
  4. totally OT
    By Zengar in forum OpenGL: Advanced Coding
    Replies: 7
    Last Post: 12-26-2003, 07:04 AM
  5. TOTALLY NEWBIE
    By tunning_target in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-22-2003, 05:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean