Thread: app rule not found despite being there

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,666
    > cc -fPIE -shared -Wall -Wextra -o alu_bit.o alu_bit.c
    All your .c.o rules need to pass the -c command line option to cc.

    You compile (only) all the .c files into .o files in the first instance.

    Then you link all the objects and libraries to produce the executable.
    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.

  2. #2
    Registered User awsdert's Avatar
    Join Date
    Jan 2015
    Posts
    1,735
    Quote Originally Posted by Salem View Post
    > cc -fPIE -shared -Wall -Wextra -o alu_bit.o alu_bit.c
    All your .c.o rules need to pass the -c command line option to cc.

    You compile (only) all the .c files into .o files in the first instance.

    Then you link all the objects and libraries to produce the executable.
    Ah thank you That got me further (had to re-add the RPATH and finally remembered about adding the -L switch), just missing a function I hadn't realised I hadn't made yet but otherwise nearly able to test the base functions I need for it to be a usable library in mitsy before moving on to making and testing the speed of another function I thought of an optimised way to make (well more optimised than the previous version I made that mitsy currently includes)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simpson's Rule (not composite simpson's rule)
    By Solas99 in forum C Programming
    Replies: 10
    Last Post: 04-02-2013, 12:37 PM
  2. Simpson's rule and Trapezoidal rule from fixed array
    By timwonderer in forum C++ Programming
    Replies: 1
    Last Post: 12-02-2010, 03:14 PM
  3. Rule of 72
    By sonict in forum C++ Programming
    Replies: 12
    Last Post: 01-23-2003, 08:31 PM

Tags for this Thread