1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  3. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  4. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

How to Link with WINAVR

Discussion in 'DIY Motion Simulator Projects' started by stowaway, Feb 9, 2012.

  1. stowaway

    stowaway New Member

    Joined:
    Mar 16, 2009
    Messages:
    213
    Location:
    Gold Coast - Australia
    Balance:
    1Coins
    Ratings:
    +0 / 0 / -0
    I know this is more of a WinAVR question rather than a simulator question. But im getting no love in the AVR forums currently.

    Does anyone know how I link a .h and .c file to my main.c win WINAVR.. I have downloaded a LCD library that I want to use except using the winavr MAKE doesnt link it.. And im not sure how to edit it to add a libarry. any clues?
  2. stowaway

    stowaway New Member

    Joined:
    Mar 16, 2009
    Messages:
    213
    Location:
    Gold Coast - Australia
    Balance:
    1Coins
    Ratings:
    +0 / 0 / -0
    incase anyone ever gets stuck on this. (Jeeze I am so used to being spoilt with C# and Java)

    in the make file:
    find thid line

    SRC = $(TARGET).c [ADD FILENAME HERE]

    so mine was:

    SRC = $(TARGET).c lcd_lib.c