Skip to content

Can't use precompile library  #5245

@chauvoluuhuong

Description

@chauvoluuhuong

I would like to use precompile library.

First of all, I follow this tutorial
https://wiki.seeedstudio.com/Software-Static-Library/
To create a static library file (dot a file). After successfully create a static library file. I changed its file name to libLHBoard.a
and place it in /src/esp32 in Arduino's library folder. As the picture bellow

Screen Shot 2021-06-04 at 11 26 37

After that, ** I append two these lines in library.properties file to make use precompile library (libLHBoard.a) file**
precompiled=true
ldflags=-lLHBoard

I to make use that I can use precompile library, I tried to remove all .cpp files. in that library and call a function in static libaray

It doesn't work at all. Can anybody give me advice?
Of course I already build compile, and use that library to assure the error can't come from it side

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: StaleIssue is stale stage (outdated/stuck)Type: DocumentationIssue pertains to Documentation of Arduino ESP32

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions