-
Notifications
You must be signed in to change notification settings - Fork 132
Sloeber not linking files correctly. Causing missing globals or functions. #1406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
First of. |
yeah ive set the same libraries and hardware links in the properties, but like i say it wont even link correctly to header includes that are in the same project folder. As for linker index or discovery problem...... uhh all the above? |
Just gone through a bunch of stuff and tripple checked my code... And still having problems with linking or resolving not working correctly.... Also it builds in Arduino IDE just fine. |
You provide way to little info to help you out. |
That is probably because the library folder contains code (*.cpp *.c *.h file) What is the console output after a clean build? |
00:41:15 **** Build of configuration Release for project Voyager_Tricorder_V2_Body **** 00:41:16 Build Failed. 3 errors, 0 warnings. (took 480ms) |
I should point out I have about 14 thousand lines of code! Like I say something just isnt right in the project setup or linker.. its turning into a nightmare. |
Now I know you are
|
Well I can't use the boards manager to install Roger Clark stm32duino core. But adding its dir to the hardware list worked before. No coding issue in molscan. That's part of the linking issue not finding the min function. What instructions? |
Can you explain to me how one is meant to reproduce my bug where linking isnt working as it should? Im currently in limbo on the edge of finishing my project. And sloeber simply isnt working as it should be... I've installed jdk11 i have set the ini file to link to that. All my libraries are added in the library properties, as well as box ticked in the add library to project menu. I have tried this both on the sloeber standalone version and the eclipse plugin version. both have the same problem. The problem is not my code nor the libraries, as I have said, it builds perfectly fine in Arduino IDE, as it did on my old machine that I had sloeber running on. Only difference I can think is I was using eclipse from last year on the old machine. So if you say this is not a bug... Then what is it? If its user error.... tell me what im doing wrong so i can fix it? |
Ok It think I have fixed the problems I was having. It may have been some redefines of functions within the SPI.h i had as part of my core library for rogerclarks stm32duino... It was also showing errors like Serial1 is undefined.. Or random and delay arguments are ambiguous. Simple basic functions like those. Maybe something has changed about how the indexer and compiler collects and reorganises the code since the version I had before. And highlighted this problem I had already in the code backend. But its honestly been a really annoying time spending nearly a whole week trying to get this to work. All the time Arduino IDE was compiling it just fine not showing any errors. So I was sure it wasnt my code thats the issue. For now the fix has been to comment out those redefined functioned from SPI.h in rogers core as I have done with the Min function. So its now reverting to the original calls of those functions in both arduino.h / wireish and stdlib. |
I guess this can be closed now. If not please provide proper info to what the remaining issue is |
Sorry hard one to explain, but since rebuilding sloeber with eclipse. Im now getting really strange errors with missing functions and variables....
For a long while it didnt even understand what a uint8_t was.
I have re included libraries using the "arduino/add library to selected project" but its still refusing to correctly look up local header files within the project folder.
eg

which is inside this header include
These are both within the same main .ino file.
I should point out before the migration to the new computer (which is why i was reintalling sloeber) my project was building find. Nothing has changed in that regard.
The linker is just borked.
The text was updated successfully, but these errors were encountered: