Newbie to C:What compiler should I use to compile these files?

This is a discussion on Newbie to C:What compiler should I use to compile these files? within the Tech Board forums, part of the Community Boards category; I am new at C programming but not new at programming. Usually I program in consol powerbasic http://www.powerbasic.com/products/ which has ...

  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    7

    Lightbulb Newbie to C:What compiler should I use to compile these files?

    I am new at C programming but not new at programming. Usually I program in consol powerbasic http://www.powerbasic.com/products/ which has a few similarities with C or C++.

    I always want to learn C . ( I had a got a C but finish learning Pearl)

    Now I am learning & C programming to understand how a Neural Net is set up and be able to do my own modifications in C console.

    http://www.neural-networks-at-your-f...m/adaline.html

    http://www.neural-networks-at-your-fingertips.com/

    Could any one tell me what compiler I have to use to run the adaline pgr on WIN2000PRO?

    Any guidance would be apprecieted.

    John

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,532
    http://www.thefreecountry.com/compilers/cpp.shtml
    Visual Studio Express and Dev-C++ seem popular choices.

    VSE is a big download, and you also need to get the platform SDK (search this forum) as well.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    I like Code::Blocks.
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  4. #4
    Registered User
    Join Date
    Nov 2006
    Posts
    7
    Quote Originally Posted by Salem
    http://www.thefreecountry.com/compilers/cpp.shtml
    Visual Studio Express and Dev-C++ seem popular choices.

    VSE is a big download, and you also need to get the platform SDK (search this forum) as well.
    Salem

    Thank you

    When you say "Dev-C++" do you mean "Bloodshed Dev-C++ C++ Compiler".
    "..Win32 IDE'' includes the egcs C++ compiler, GNU debugger from the Mingw32 environment together with an editor & other facilities to make program development using the Mingw32 gcc compiler easier on a Windows platform. It also includes an installer for your applications"

    That looks like a cool package.

    Pardon my ignorance but what is special about "Mingw32 environment"?

    John

  5. #5
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    MinGW is the Windows port of the gcc compiler. Also, in case you didn't know, Dev-C++ is officialy no longer being developed, and has been this way for several years.
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  6. #6
    Registered User
    Join Date
    Nov 2006
    Posts
    7
    Quote Originally Posted by manutd
    I like Code::Blocks.
    Manutd

    Thanks

    Code::Blocks specs says " It even includes a plugin wizard so you can create your own plugins! (Free SDK downloaded separately)"

    In my case , with the Neural Net C program I am working on ( top of my thread)
    do I need to download the SDK?


    John

  7. #7
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    No, this allows Code::Blocks to have things added to it (new debuggers, etc). Look at this post on my blog for an explanation of how to install it.
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  8. #8
    Registered User
    Join Date
    Nov 2006
    Posts
    7
    Quote Originally Posted by manutd
    No, this allows Code::Blocks to have things added to it (new debuggers, etc). Look at this post on my blog for an explanation of how to install it.
    Manutd
    Thanks for mentioning ""Dev-C++ is officialy no longer being developed,..."" otherwise I'll would have spend time for nothing.

    From a newbie point of view at the moment a couple of steps are not straight forward.

    I look at your Blog which says

    '' 1. First I went to codeblocks.org (link at right).
    '' 2. Then you click on download, and navigate to the nightly build section.
    " 3. Go to the forum and download the latest nightly build.

    >>I downloaded : The 03 December 2006 build is out.
    - Windows : http://prdownload.berlios.de/codeblo...v3327_win32.7z

    Is CB_20061203_rev3327_win32.7z called the IDE "nightly build"?


    " 4. Download the mingwm10.dll from here.
    >>I downloaded from the pointer on your website the file
    >>mingwm10.7z which unzip to mingwm10.dll

    " 5. Download a wxWidgets dll from here.
    >>I downloaded from the pointer on your website the file >>wxmsw26u_gcc_cb_wx2.6.3p2.7z which unzip to wxmsw26u_gcc_cb.dll

    >> I also downloaded 7-zip (www.7-zip.org) which is not on your Blog

    " 6. Download the MinGW compiler system. I did this by downloading Dev-C++ and then removing Dev-C++, leaving MinGW.
    "Then rename the folder to MinGW and place it in the root directory of your drive.

    >>I get a little bit confused on your step 6 from your Blog compare to the Code_Block forum.
    The Code_Block forum saysno mention of the MinGW compiler system)
    http://forums.codeblocks.org/index.p...f&topic=3232.0
    ...3. How to install a nightly build
    ....Allrighty, time for a small recap :
    ....1) CB nightly
    ...2) mingwm10.dll
    ...3) wxmsw26u_gcc_cb.dll

    For the moment code Block forum and your Blog agree .
    a) The IDE is CB_20061203_rev3327_win32.7z what you call a "nightly build" - OK
    b) mingwm10.dll - OK
    c) wxWidgets dll - OK

    Tell me if I understand correctly.
    You are loading (linking to the IDE "nightly build" ) a MinGW compiler system but Code_Block does not do that? is my thinking correct?

    Manutd in your Blog when you mention downloading , does that also implies installing the file?

    What's the order of installation? and do I need to reboot my WIN2000PRO box each time I install a file?

    Could you tell me under which C:\ sub_directory I install each of these 4 files?

    What does your tree directory look like?

    John

  9. #9
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,532
    First of all, I think you need to understand the distinction between a compiler and an IDE.

    The compiler tool chain (compiler, linker, librarian) simply turns your source code into an executable program. It may (or may not) come with a bunch of libraries relevant to your platform. It may also come with other tools like a debugger and a profiler.

    At the very minimum, the only other thing you need is notepad.exe and a command line, and you can start writing simple programs.

    The IDE provides a source code editor, projects, help files etc and provides some "glue" between all the various steps in the development process (like edit, compile, debug) all within the same application.

    So, MinGW is a compiler which you can get from http://www.mingw.org/
    It's downside is that it is a little on the fiddly side to install compared to just double-clicking on the single executable that dev-c++ provides (and I guess code::blocks also provides).

    Dev-C++ is an IDE which in one configuration comes with MinGW.

    code::blocks is an IDE which also comes with (or without) MinGW.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  10. #10
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    I mention Dev-C++ because for me this was the simplest way to explain getting the MinGW compiler system. If you eliminate all of the files in the Dev-C++ directory, you should be left with these folders:
    1. bin
    2. include
    3. lib
    4. libexec
    5. mingw32
    No, you do not need to reboot, just follow my steps.
    Quote Originally Posted by g88z9
    Is CB_20061203_rev3327_win32.7z called the IDE "nightly build"?
    Yes. YOu unzip (I put it in C:\codeblocks). I also updated my post to include a link to TugZip/7-Zip Place all the libs in the codeblocks directory.
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  11. #11
    Registered User
    Join Date
    Nov 2006
    Posts
    7
    Quote Originally Posted by manutd
    I mention Dev-C++ because for me this was the simplest way to explain getting the MinGW compiler system. If you eliminate all of the files in the Dev-C++ directory, you should be left with these folders:
    1. bin
    2. include
    3. lib
    4. libexec
    5. mingw32
    No, you do not need to reboot, just follow my steps.Yes. YOu unzip (I put it in C:\codeblocks). I also updated my post to include a link to TugZip/7-Zip Place all the libs in the codeblocks directory.

    Manutd, thanks.

    I am new at C and C compiler and installing the "IDE" codeblocks is tricky.
    I need time and some instruction to at least have a win on a small example program.

    I did two things

    1) I installed the "codeblocks" and dlls but did not want to go any further at this stage because it feels like I am lost in space.
    I need some more explanation of how C is set up and why things are set up that way.

    2) I installed Dev-C++ and had a feel for it.

    But how do I compile the code + etc...?

    All I need to do is compile the few programs that I got to understand the code.

    There is a lot of similarities between the code I use on Pearl or Powerbasic and C.
    I would say , most of the codes comes from C in some way.

    Is there some sort of clear explanation on how to use this C console compiler Dev-C++ ?

    John

  12. #12
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    Dev-C++:
    1. Create a project (New->Project).
    2. Select Console.
    3. Type your code and hit F9 (Compile and Run).
    4. Enjoy!
    Code::Blocks: Give me your email and I will send you a zip of everything you need.
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  13. #13
    Registered User
    Join Date
    Nov 2006
    Posts
    7
    Quote Originally Posted by manutd
    Dev-C++:
    1. Create a project (New->Project).
    2. Select Console.
    3. Type your code and hit F9 (Compile and Run).
    4. Enjoy!
    Code::Blocks: Give me your email and I will send you a zip of everything you need.
    manutd
    Thanks for your offer

    Here is my email. (not to be bombarded by spam emails, please remove all the _ and @ is written as ATTTT
    - I hope I can full the email spy agents and spammers)

    manutd I will email you directly rather than making it public (Thanks Ken FitLike for the tip)

    If you don't mind I'll post you some screen shot . It will be easier that way.

    Excellent news also.
    I searched my bookshelves and found a book I purchased 8 years ago at a secondhand shop.
    The book is called
    "BasictoC++" from Robert J. Traister
    The disk with examples and the sample translation program CBREEZE++ is missing.
    But the 363 are full of conversion and explanations between Basic to C++ and suppose C .

    John
    Last edited by g88z9; 12-06-2006 at 09:25 PM.

  14. #14
    Registered User
    Join Date
    Nov 2006
    Posts
    7
    Quote Originally Posted by manutd
    Dev-C++:
    1. Create a project (New->Project).
    2. Select Console.
    3. Type your code and hit F9 (Compile and Run).
    4. Enjoy!
    Code::Blocks: Give me your email and I will send you a zip of everything you need.
    I am confused.
    Want to send personal email to manutd.
    Looked at FAQ but can't see how to do it

    John

  15. #15
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Click his user name to get to the profile page. Then choose the link "Send manutd a private message" there.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Newbie Question!!! How to setup compiler
    By Mithrandil in forum C++ Programming
    Replies: 1
    Last Post: 10-04-2003, 10:32 AM
  2. very newbie question: how to copy files
    By webwesen in forum C Programming
    Replies: 26
    Last Post: 04-25-2002, 03:01 PM
  3. Replies: 0
    Last Post: 03-25-2002, 03:02 AM
  4. what are all the compiler files
    By 0927 in forum C++ Programming
    Replies: 2
    Last Post: 01-28-2002, 11:42 PM
  5. Compile files into execs
    By CodeMonkey in forum Windows Programming
    Replies: 9
    Last Post: 01-04-2002, 09:07 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21