Hey, I have an error in my code (C++) that I don’t understand, do you have any idea ?
Thank you for your answers
Gaspard team 5553
Hey, I have an error in my code (C++) that I don’t understand, do you have any idea ?
Thank you for your answers
Gaspard team 5553
Looks like the compilation has failed, but I don’t see the reason in the output.
Is that all the output you get? Can you try to run it with the additional flags they suggested in order to get more info?
that’s all the result I got
Open up a terminal, go to your robot code directory and eun ./gradlew build --info
and paste the output. It looks like gradle is having some sort of stroke from this image, so more info is needed. Do you have any special characters in your codebase by chance? Java.nio.MalformedInput exception sounds like it could be that.
You probably have special characters in your path.
Can you run from the terminal in VS Code ./gradlew build --stacktrace
? And post the result? You reported this last year in Error java, and we thought we fixed it, but since we couldn’t reproduce it we couldn’t test the fix.
thank you for your answers, we do not have any particular characters in the code, this is what the terminal returns to me.
README.txt (46.2 KB)
Awesome, thank you. I’ll post a fix for the next release.
thank you so much
when do you think you will publish the next release ?
Today, assuming nothing goes wrong (tomorrow for you)
fantastic
The problem is solved, thank you very much!
Hi, I have a new problem, it’s been a little over a month now since we encountered any errors regarding particular symbols. But today I added the rev lib to our code because our database now uses neo, no longer falcons. And as soon as I added this I got an error that I don’t understand.
Thanks in advance.
Task :linkFrcUserProgramWindowsx86-64ReleaseExecutable FAILED
REVLibDriver.lib(CANSparkMaxDriver.obj) : error LNK2019: symbole externe non résolu _Thrd_sleep_for référencé dans la fonction “void __cdecl std::this_thread::sleep_for<__int64,struct std::ratio<1,1000> >(class std::chrono::duration<__int64,struct std::ratio<1,1000> > const &)” (??$sleep_for@_JU?$ratio@$00$0DOI@@std@@@this_thread@std@@YAXAEBV?$duration@_JU?$ratio@$00$0DOI@@std@@@chrono@1@@Z)
C:\Users\gaspa\Documents\repo\T-nor\build\exe\frcUserProgram\windowsx86-64\release\frcUserProgram.exe : fatal error LNK1120: 1 externes non résolus
Task :linkFrcUserProgramWindowsx86-64DebugExecutable FAILED
REVLib.lib(CANSparkLowLevel.obj) : warning LNK4099: PDB ‘’ n’a pu être trouvé avec ‘REVLib.lib(CANSparkLowLevel.obj)’ ou sur ‘’ ; l’objet sera lié sans informations de débogage
REVLib.lib(CANSparkBase.obj) : warning LNK4099: PDB ‘’ n’a pu être trouvé avec ‘REVLib.lib(CANSparkBase.obj)’ ou sur ‘’ ; l’objet sera lié sans informations de débogage
REVLib.lib(CANSparkMax.obj) : warning LNK4099: PDB ‘’ n’a pu être trouvé avec ‘REVLib.lib(CANSparkMax.obj)’ ou sur ‘’ ; l’objet sera lié sans informations de débogage
REVLib.lib(SparkAbsoluteEncoder.obj) : warning LNK4099: PDB ‘’ n’a pu être trouvé avec ‘REVLib.lib(SparkAbsoluteEncoder.obj)’ ou sur ‘’ ; l’objet sera lié sans informations de débogage
REVLib.lib(SparkAnalogSensor.obj) : warning LNK4099: PDB ‘’ n’a pu être trouvé avec ‘REVLib.lib(SparkAnalogSensor.obj)’ ou sur ‘’ ; l’objet sera lié sans informations de débogage
REVLib.lib(SparkLimitSwitch.obj) : warning LNK4099: PDB ‘’ n’a pu être trouvé avec ‘REVLib.lib(SparkLimitSwitch.obj)’ ou sur ‘’ ; l’objet sera lié sans informations de débogage
REVLib.lib(SparkPIDController.obj) : warning LNK4099: PDB ‘’ n’a pu être trouvé avec ‘REVLib.lib(SparkPIDController.obj)’ ou sur ‘’ ; l’objet sera lié sans informations de débogage
REVLib.lib(SparkRelativeEncoder.obj) : warning LNK4099: PDB ‘’ n’a pu être trouvé avec ‘REVLib.lib(SparkRelativeEncoder.obj)’ ou sur ‘’ ; l’objet sera lié sans informations de débogage
REVLib.lib(SparkMaxAlternateEncoder.obj) : warning LNK4099: PDB ‘’ n’a pu être trouvé avec ‘REVLib.lib(SparkMaxAlternateEncoder.obj)’ ou sur ‘’ ; l’objet sera lié sans informations de débogage
REVLib.lib(SparkMaxAbsoluteEncoder.obj) : warning LNK4099: PDB ‘’ n’a pu être trouvé avec ‘REVLib.lib(SparkMaxAbsoluteEncoder.obj)’ ou sur ‘’ ; l’objet sera lié sans informations de débogage
REVLib.lib(SparkMaxAnalogSensor.obj) : warning LNK4099: PDB ‘’ n’a pu être trouvé avec ‘REVLib.lib(SparkMaxAnalogSensor.obj)’ ou sur ‘’ ; l’objet sera lié sans informations de débogage
REVLib.lib(SparkMaxLimitSwitch.obj) : warning LNK4099: PDB ‘’ n’a pu être trouvé avec ‘REVLib.lib(SparkMaxLimitSwitch.obj)’ ou sur ‘’ ; l’objet sera lié sans informations de débogage
REVLib.lib(SparkMaxPIDController.obj) : warning LNK4099: PDB ‘’ n’a pu être trouvé avec ‘REVLib.lib(SparkMaxPIDController.obj)’ ou sur ‘’ ; l’objet sera lié sans informations de débogage
REVLib.lib(SparkMaxRelativeEncoder.obj) : warning LNK4099: PDB ‘’ n’a pu être trouvé avec ‘REVLib.lib(SparkMaxRelativeEncoder.obj)’ ou sur ‘’ ; l’objet sera lié sans informations de débogage
REVLibDriver.lib(CANSparkMaxDriver.obj) : warning LNK4099: PDB ‘’ n’a pu être trouvé avec ‘REVLibDriver.lib(CANSparkMaxDriver.obj)’ ou sur ‘’ ; l’objet sera lié sans informations de débogage
REVLibDriver.lib(CANSparkMaxHeartbeat.obj) : warning LNK4099: PDB ‘’ n’a pu être trouvé avec ‘REVLibDriver.lib(CANSparkMaxHeartbeat.obj)’ ou sur ‘’ ; l’objet sera lié sans informations de débogage
REVLibDriver.lib(REVLibErrors.obj) : warning LNK4099: PDB ‘’ n’a pu être trouvé avec ‘REVLibDriver.lib(REVLibErrors.obj)’ ou sur ‘’ ; l’objet sera lié sans informations de débogage
REVLibDriver.lib(CANSparkMax.obj) : warning LNK4099: PDB ‘’ n’a pu être trouvé avec ‘REVLibDriver.lib(CANSparkMax.obj)’ ou sur ‘’ ; l’objet sera lié sans informations de débogage
REVLibDriver.lib(REVUtils.obj) : warning LNK4099: PDB ‘’ n’a pu être trouvé avec ‘REVLibDriver.lib(REVUtils.obj)’ ou sur ‘’ ; l’objet sera lié sans informations de débogage
NavX.lib(AHRS.obj) : warning LNK4099: PDB ‘’ n’a pu être trouvé avec ‘NavX.lib(AHRS.obj)’ ou sur ‘’ ; l’objet sera lié sans informations de débogage
NavX.lib(InertialDataIntegrator.obj) : warning LNK4099: PDB ‘’ n’a pu être trouvé avec ‘NavX.lib(InertialDataIntegrator.obj)’ ou sur ‘’ ; l’objet sera lié sans informations de débogage
NavX.lib(OffsetTracker.obj) : warning LNK4099: PDB ‘’ n’a pu être trouvé avec ‘NavX.lib(OffsetTracker.obj)’ ou sur ‘’ ; l’objet sera lié sans informations de débogage
NavX.lib(ContinuousAngleTracker.obj) : warning LNK4099: PDB ‘’ n’a pu être trouvé avec ‘NavX.lib(ContinuousAngleTracker.obj)’ ou sur ‘’ ; l’objet sera lié sans informations de débogage
NavX.lib(RegisterIO.obj) : warning LNK4099: PDB ‘’ n’a pu être trouvé avec ‘NavX.lib(RegisterIO.obj)’ ou sur ‘’ ; l’objet sera lié sans informations de débogage
NavX.lib(RegisterIOSPI.obj) : warning LNK4099: PDB ‘’ n’a pu être trouvé avec ‘NavX.lib(RegisterIOSPI.obj)’ ou sur ‘’ ; l’objet sera lié sans informations de débogage
NavX.lib(RegisterIOI2C.obj) : warning LNK4099: PDB ‘’ n’a pu être trouvé avec ‘NavX.lib(RegisterIOI2C.obj)’ ou sur ‘’ ; l’objet sera lié sans informations de débogage
NavX.lib(SerialIO.obj) : warning LNK4099: PDB ‘’ n’a pu être trouvé avec ‘NavX.lib(SerialIO.obj)’ ou sur ‘’ ; l’objet sera lié sans informations de débogage
NavX.lib(SimIO.obj) : warning LNK4099: PDB ‘’ n’a pu être trouvé avec ‘NavX.lib(SimIO.obj)’ ou sur ‘’ ; l’objet sera lié sans informations de débogage
NavX.lib(Tracer.obj) : warning LNK4099: PDB ‘’ n’a pu être trouvé avec ‘NavX.lib(Tracer.obj)’ ou sur ‘’ ; l’objet sera lié sans informations de débogage
REVLibDriver.lib(CANSparkMaxDriver.obj) : error LNK2019: symbole externe non résolu _Thrd_sleep_for référencé dans la fonction “void __cdecl std::this_thread::sleep_until<struct std::chrono::steady_clock,class std::chrono::duration<__int64,struct std::ratio<1,1000000000> > >(class std::chrono::time_point<struct std::chrono::steady_clock,class std::chrono::duration<__int64,struct std::ratio<1,1000000000> > > const &)” (??$sleep_until@Usteady_clock@chrono@std@@V?$duration@_JU?$ratio@$00$0DLJKMKAA@@std@@@23@@this_thread@std@@YAXAEBV?$time_point@Usteady_clock@chrono@std@@V?$duration@_JU?$ratio@$00$0DLJKMKAA@@std@@@23@@chrono@1@@Z)
C:\Users\gaspa\Documents\repo\T-nor\build\exe\frcUserProgram\windowsx86-64\debug\frcUserProgram.exe : fatal error LNK1120: 1 externes non résolus
Task :linkFrcUserProgramTestWindowsx86-64ReleaseGoogleTestExe FAILED
REVLibDriver.lib(CANSparkMaxDriver.obj) : error LNK2019: symbole externe non résolu _Thrd_sleep_for référencé dans la fonction “void __cdecl std::this_thread::sleep_for<__int64,struct std::ratio<1,1000> >(class std::chrono::duration<__int64,struct std::ratio<1,1000> > const &)” (??$sleep_for@_JU?$ratio@$00$0DOI@@std@@@this_thread@std@@YAXAEBV?$duration@_JU?$ratio@$00$0DOI@@std@@@chrono@1@@Z)
C:\Users\gaspa\Documents\repo\T-nor\build\exe\frcUserProgramTest\windowsx86-64\release\frcUserProgramTest.exe : fatal error LNK1120: 1 externes non résolus
Linker Error!
GradleRIO detected this build failed due to a Linker Error (linkFrcUserProgram).
Check that all your files are saved, then scroll up in this log for more information.
Linker Error!
GradleRIO detected this build failed due to a Linker Error (linkFrcUserProgramTest).
Check that all your files are saved, then scroll up in this log for more information.
FAILURE: Build completed with 3 failures.
A build operation failed.
Linker failed while linking frcUserProgram.exe.
See the complete log at: file:///C:/Users/gaspa/Documents/repo/T-nor/build/tmp/linkFrcUserProgramWindowsx86-64ReleaseExecutable/output.txt
Linker failed while linking frcUserProgram.exe.
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.
==============================================================================
A build operation failed.
Linker failed while linking frcUserProgram.exe.
See the complete log at: file:///C:/Users/gaspa/Documents/repo/T-nor/build/tmp/linkFrcUserProgramWindowsx86-64DebugExecutable/output.txt
Linker failed while linking frcUserProgram.exe.
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.
==============================================================================
A build operation failed.
Linker failed while linking frcUserProgramTest.exe.
See the complete log at: file:///C:/Users/gaspa/Documents/repo/T-nor/build/tmp/linkFrcUserProgramTestWindowsx86-64ReleaseGoogleTestExe/output.txt
Linker failed while linking frcUserProgramTest.exe.
This is similar to errors we have had in the past. If I’m not mistaken.
Try upgrading your Visual Studio 2022 install to the latest version.
I use a 2024 version
I’m talking about the full Visual Studio Community Edition, not Visual Studio Code. The full Visual Studio is how C++ desktop executables are built. Visual Studio 2022 version 17.9 was recently released.
ok, I didn’t understand, I’m upgrading it