Lib included in onother lib mus be include in main project...

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello,

 

I'm working on Atmel Studio 7.

 

I have:

- main project

- SoftwareSerial lib

- ArduinoCore Lib

 

SoftwareSerial lib is included in the main project.

ArduinoCore lib is included in SoftwareSerial lib.

 

There is no direct link between Main project and ArduinoCore, but, if I do not include ArduinoCore lib in the main project, I have error:

- undefined reference to "functionName". The associated file is a SoftwareSerial lib file.

 

Is there a way to remove all direct link between "main project" and "ArduinoCore Lib" or do I must include SoftwareSerial AND ArduinoCore Lib in the main project?

 

Thank you

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

AntoineC wrote:
or do I must include SoftwareSerial AND ArduinoCore Lib in the main project?
That - unless you want to lift the source of "functionName()" from one and add it to the other (and all its dependencies).

 

What's the big deal anyway? Almost every C program you ever build (with GCC) already links to libc.a, libm.a, libgcc.a anyway so what's a couple more .a files ?