Results 1 to 4 of 4

Thread: compiling path question

  1. #1

    compiling path question

    So when you compile where do the paths come from? Are they the defined paths in the .bashrc of the user trying to compile? I've ran into this sort of compiling problem at time, but never knew what to do to fix it.

  2. #2

    Re:compiling path question

    which paths? there are paths deifned for you to use porggies, like gcc and there are pathes defined in makefiles which will setup up environments for compilesing the proggie

  3. #3

    Re:compiling path question, if I compile and, let's say the path to 'test.c' is wrong, it's most likely in the Makefile? So, like in gcc, what are the paths used for? Object files and such? How would I go about changing that, if I ever needed to?

  4. #4

    Re:compiling path question

    hey kernel killer,
    that should all be specified in the makefile, gcc is, while it hurts to say this, just another proggie that is told what to do by the user, and the users makefile.

    CC = /usr/bin/gcc
    CCOPTS = -O2 -ggdb
    RM = rm -f
            $(CC) $(CCOPTS) ex15_10 ex15_10.c 
    #for a cfile called test.c in a directory relatve/path from current location
            $(CC) $(CCOPTS) -o realtive/path/test relative/path/test.c
            $(RM) ex15_10 relative/path/test

Similar Threads

  1. Another Compiling question
    By vwgtiturbo in forum Linux - General Topics
    Replies: 3
    Last Post: 07-24-2004, 04:38 AM
  2. Path
    By mugs in forum Linux - General Topics
    Replies: 8
    Last Post: 11-24-2002, 08:35 PM
  3. Add to PATH
    By trickster in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 09-28-2002, 10:26 PM
  4. Path question
    By PatC in forum Redhat / Fedora
    Replies: 3
    Last Post: 07-10-2002, 11:14 PM
  5. Kernel compiling question
    By Pleiades in forum Linux - General Topics
    Replies: 4
    Last Post: 12-30-2001, 10:49 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts