Page 4 of 4 FirstFirst ... 234
Results 31 to 37 of 37

Thread: Programming Tools used to write code

  1. #31
    Join Date
    Jan 2004
    Location
    West Des Moines, Iowa
    Posts
    386

    Default

    Mike...

    If the version of make provided with mingw doesn't have suitable defaults built in, you might post a minimal makefile here. Writing makefiles can be a bit intimidating for new users.


    ...Morris

  2. #32
    Join Date
    Jan 2004
    Location
    , South Jordan Utah
    Posts
    1,693

    Default

    Morris,

    Listing a sample Makefile is probably a good idea. It takes a little space and listing a file that's not sbp code might offend non-programmers, but I've had to pull arrows out of my back before.

    Here's four sample files: (1) Makefile, (2) Header file, (3) Source file 1, (4) Source file 2. Although no one would ever break things up in this manner, it might be useful as a pattern for larger projects. (It's the pattern I used to write the 'doors.exe' file.)

    # file name: Makefile
    # date: 30 May 2005
    # purpose: sample makefile
    CC=/c/mingw/bin/g++
    LINK=-lm

    OBJS= \
    ..hello.o\
    ..hello2.o

    hello: $(OBJS)
    ..$(CC) -Wall -o $@ $(OBJS) $(LINK)

    compile:
    ..$(CC) -Wall -c $(OBJS)

    clean:
    ..rm -rf *.o
    # end of makefile



    /* hello.h */
    #include <stdio.h>

    void Hello(void);
    /* end of hello.h */



    /* hello.c */
    #include "hello.h"

    int main(void) {
    ..printf("Hello from main()\n");
    ..Hello();
    ..return(0);
    }
    /* end of hello.c */



    /* hello2.c */
    #include "hello.h"

    void Hello(void)
    {
    ..printf("Hello from Hello()\n");
    }
    /* end of hello2.c */



    Sorry about all of the '..' characters, but I couldn't figure out the correct way to format. The '..' characters represent a tab character. If anyone has questions, please email me.

    -Mike
    miker@xmission.com

  3. #33
    Join Date
    Jan 2004
    Location
    Quality Products NorthWest, LLC, Juneau AK
    Posts
    62

    Default

    Have you guys found a "vi" like editor that runs in windoze? I have found that if you know "vi" commands pretty well, you can do some amazing editing, like global search and replace/delete, etc. I have used MKS tools in the past, but think there must be some "vi" tools that are freeware or shareware...... It is hard for us old UNIX folks to get used to windoze!

    Any pointers/tips appreciated....

    Wayneo

  4. #34
    Join Date
    Jul 2004
    Location
    Valcourt, Québec, Canada
    Posts
    1,887

    Default

    Hi Wayne!

    Have you heard of VIM (www.vim.org)?

    ...I'm not sure what you meant by "vi"; I assumed... something!

  5. #35
    Join Date
    Jan 2004
    Location
    Quality Products NorthWest, LLC, Juneau AK
    Posts
    62

    Default

    Hi Paco,
    Yes, I have VIM for UNIX on my SUN workstation @ work. I hate to give up all my years of learing "VI" and be constrained to use "NOTEPAD" in windoze. There is so many "VI" look-alike's out there, I was hoping to avoid having to dig through the pile.

    Trying VIM is a good suggestion!

    Thanks,

    Wayneo

  6. #36
    Join Date
    Jan 2004
    Location
    , South Jordan Utah
    Posts
    1,693

    Default

    Wayne,

    Paco's suggestion was correct.

    Morris Dovey said, "I've been using GVIM, also a free program, and have set it up for syntax coloring of .SBP files. VI (even improved) isn't my favorite editor, but I couldn't find a Win32 version of nedit - which /is/ my favorite.

    I've set up my system so that the FE command executes GVIM (default) or if there're parameters started and ended with a dollar sign, requests the system to execute the parameters between the $'s - a hacker's delight!" in his November 26, 2004 post.

    -Mike

  7. #37
    Join Date
    Aug 2005
    Location
    , Brooklyn Park Minnesota
    Posts
    13

    Default

    I like using cygwin on my windoze boxes. http://cygwin.com/ Totally free, works like a charm. Basically a mini-distro that runs on windoze, comes with shells, all the command line tools, compilers, can even run X. Sometimes I forget I'm running windoze.

Similar Threads

  1. Cambium Code Web Tools – Parametric G-code Generation
    By CambiumMachines in forum Product/Supplier List and Requests
    Replies: 0
    Last Post: 12-18-2012, 10:36 PM
  2. Nice little write-up on vectric.com
    By shoeshine in forum Folder 2010
    Replies: 2
    Last Post: 11-05-2010, 11:49 PM
  3. Sbsys.log file won'tr write anymore.
    By knight_toolworks in forum ShopBotter Message Board
    Replies: 4
    Last Post: 07-06-2009, 01:53 PM
  4. Shopbot Code VS G-Code?
    By rb99 in forum ShopBotter Message Board
    Replies: 9
    Last Post: 01-17-2009, 10:08 AM
  5. Couple of Write offs...:-)
    By john_r in forum Folder 2007
    Replies: 4
    Last Post: 05-22-2007, 08:20 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
  •