How can I do to when the erorr show the pic? - omnet++

When I build project
This erorr show[ undefined reference to `virtual thunk to veins::TraCIScenarioManagerLaunchd::finish()]

Related

Reference errors when importing CubeMx project into VisualGDB

I am having some issues when importing my fresh cubeMX project into VisualGDB. I get tonnes of errors that say:
undefined reference to 'vPortFree' (for example)
Steps taken:
Generate project files in CubeMX using "Other toolchain"
Then in VS, create project using Embedded Visual GDB and mostly following default steps. I am following this process exactly. https://www.youtube.com/watch?v=XY4I0Nq6IGc
Once the project is created I try built it, but I get these errors:
Severity Description Project File Line
Error undefined reference to `vPortFree' stm32nucleof429zi_freertos_tcpip C:\Repos\stm32nucleof429zi_freertos_tcpip.git\stm32nucleof429zi_freertos_tcpip.git\Middlewares\Third_Party\FreeRTOS\Source\tasks.c 3920
Error undefined reference to `vPortFree' stm32nucleof429zi_freertos_tcpip C:\Repos\stm32nucleof429zi_freertos_tcpip.git\stm32nucleof429zi_freertos_tcpip.git\Middlewares\Third_Party\FreeRTOS\Source\tasks.c 3921
Error undefined reference to `vPortFree' stm32nucleof429zi_freertos_tcpip C:\Repos\stm32nucleof429zi_freertos_tcpip.git\stm32nucleof429zi_freertos_tcpip.git\Middlewares\Third_Party\FreeRTOS\Source\tasks.c 3927
Error Build failed: arm-none-eabi-g++.exe exited with code 1 stm32nucleof429zi_freertos_tcpip 1
Error ld returned 1 exit status stm32nucleof429zi_freertos_tcpip C:\Repos\stm32nucleof429zi_freertos_tcpip.git\stm32nucleof429zi_freertos_tcpip.git\collect2.exe 0
When I right click on main.c however and compile, the project compiles without fault. Its when using the build tool and debugger that these errors come up.
Ive never had this problem before when importing projects. Any help would be greatly appreciated
Thank you
After playing with configurations for some time I found the issues. The toolchain file that CubeMx created does not tell the linker to include all the files required for FreeRTOS to compile.
This issue is only relevant if you are using CMSIS_RTOS_V2 and the following steps fixed it for me:
Add CMSIS_RTOS_V2 to the project space by going to:
Add missing includes:
Go to: Project->VisualGDP Project Properties->MS build settings->Include directories and add the folder CMSIS_RTOS_V2 to the file path
To resolve the unidentified reference ‘pvPortMalloc’ error:
Within the VS in the Solution Explorer window: Click on "Show all files". This is a little icon/tab at the top of the solution explorer. Navigate to: C:\...Middlewares\Third_Party\FreeRTOS\Source\portable\MemMang. Right click on heap_4.c and include it in the project
https://sysprogs.com/w/forums/topic/error-undefined-reference-to-pvportmalloc-and-vportfree/

How to fix Xamarin Forms blank project build error

I have some error in new Xamarin blank project.
I tried:
Reopen VS
Update all Nuget package
Reinstall VS
The projet first build is failed with following errors:
Severity Code Description Project File Line Suppression State
Error Can not resolve reference: Xamarin.Android.Support.CustomTabs, referenced by Xamarin.Essentials. Please add a NuGet package or assembly reference for Xamarin.Android.Support.CustomTabs, or remove the reference to Xamarin.Essentials. TestAPP.Android
Severity Code Description Project File Line Suppression State
Error Can not resolve reference: Xamarin.Android.Support.Compat, referenced by Xamarin.Android.Support.DrawerLayout. Please add a NuGet package or assembly reference for Xamarin.Android.Support.Compat, or remove the reference to Xamarin.Android.Support.DrawerLayout. TestAPP.Android
Severity Code Description Project File Line Suppression State
Error The “Xamarin.Android.Support.BuildTasks.VerifyVersionsTask” task could not be loaded from the assembly…nuget\packages\xamarin.android.support.annotations\28.0.0.1\build\monoandroid90\Xamarin.Android.Support.BuildTasks.dll. Could not load file or assembly ‘…nuget\packages\xamarin.android.support.annotations\28.0.0.1\build\monoandroid90\Xamarin.Android.Support.BuildTasks.dll’ or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. TestAPP.Android
Severity Code Description Project File Line Suppression State
Error Can not resolve reference: Xamarin.Android.Support.Compat, referenced by Xamarin.Android.Support.CoordinaterLayout. Please add a NuGet package or assembly reference for Xamarin.Android.Support.Compat, or remove the reference to Xamarin.Android.Support.CoordinaterLayout. TestAPP.Android
Severity Code Description Project File Line Suppression State
Error Can not resolve reference: Xamarin.Android.Support.Compat, referenced by Xamarin.Android.Support.SlidingPaneLayout. Please add a NuGet package or assembly reference for Xamarin.Android.Support.Compat, or remove the reference to Xamarin.Android.Support.SlidingPaneLayout. TestAPP.Android
Severity Code Description Project File Line Suppression State
Error Can not resolve reference: Xamarin.Android.Arch.Lifecycle.Common, referenced by Xamarin.Android.Arch.Lifecycle.LiveData.Core. Please add a NuGet package or assembly reference for Xamarin.Android.Arch.Lifecycle.Common, or remove the reference to Xamarin.Android.Arch.Lifecycle.LiveData.Core. TestAPP.Android
Severity Code Description Project File Line Suppression State
Error Can not resolve reference: Xamarin.Android.Arch.Core.Common, referenced by Xamarin.Android.Arch.Lifecycle.LiveData. Please add a NuGet package or assembly reference for Xamarin.Android.Arch.Core.Common, or remove the reference to Xamarin.Android.Arch.Lifecycle.LiveData. TestAPP.Android
Severity Code Description Project File Line Suppression State
Error Can not resolve reference: Xamarin.Android.Support.Compat, referenced by Xamarin.Android.Support.SwipeRefreshLayout. Please add a NuGet package or assembly reference for Xamarin.Android.Support.Compat, or remove the reference to Xamarin.Android.Support.SwipeRefreshLayout. TestAPP.Android
Severity Code Description Project File Line Suppression State
Error Can not resolve reference: Xamarin.Android.Support.Compat, referenced by Xamarin.Android.Support.CustomView. Please add a NuGet package or assembly reference for Xamarin.Android.Support.Compat, or remove the reference to Xamarin.Android.Support.CustomView. TestAPP.Android
Severity Code Description Project File Line Suppression State
Error Can not resolve reference: Xamarin.Android.Support.v7.RecyclerView, referenced by Xamarin.Forms.Platform.Android. Please add a NuGet package or assembly reference for Xamarin.Android.Support.v7.RecyclerView, or remove the reference to Xamarin.Forms.Platform.Android. TestAPP.Android
Please try the following
Upgrade all Xamarin.Forms and Xamarin.Essentials nuget packages across all the projects in your Xamarin.Forms solution
Close Visual Studio
Go into your Android project's .csproj file and change the version number for all the Xamarin.Android support nuget packages (probably something like v27.x.x.x) to the latest, which is v28.0.0.1 (just do a replace all to update to that version)
Delete your bin and obj folders from each project folder
Reopen the solution in Visual Studio, do a clean and rebuild

Failed to resolve "WindowsAzure.MobileServices.MobileServiceClient)" reference from "Microsoft.WindowsAzure.Mobile, Version=1.3.0.0

I have a Xamarin.Forms app in Visual Studio 2017 and I am trying to deploy the .iOS project to my iPhone and I get this error:
Failed to resolve "System.Void Microsoft.WindowsAzure.MobileServices.MobileServiceClient::.ctor(System.String,System.String)" reference from "Microsoft.WindowsAzure.Mobile, Version=1.3.0.0
How do I resolve this error?

Unable to build Xamarin solution on Android

Please tell me how to fix the problem. I updated Xamarin forms dll.
I get the following error:
Error error: cannot find symbol
private native void n_onInflate (android.support.v7.widget.ViewStubCompat p0, android.view.View p1);
symbol: class ViewStubCompat
location: package android.support.v7.widget
obj\Debug\android\src\mono\android\support\v7\widget\ViewStubCompat_OnInflateListenerImplementor.java
Error error: cannot find symbol
public void onInflate (android.support.v7.widget.ViewStubCompat p0, android.view.View p1)
symbol: class ViewStubCompat
location: package android.support.v7.widget
obj\Debug\android\src\mono\android\support\v7\widget\ViewStubCompat_OnInflateListenerImplementor.java
Error error: package android.support.v7.widget.ContentFrameLayout does not exist
android.support.v7.widget.ContentFrameLayout.OnAttachListener
obj\Debug\android\src\mono\android\support\v7\widget\ContentFrameLayout_OnAttachListenerImplementor.java
Error error: package android.support.v7.widget.FitWindowsViewGroup does not exist
android.support.v7.widget.FitWindowsViewGroup.OnFitSystemWindowsListener
\obj\Debug\android\src\mono\android\support\v7\widget\FitWindowsViewGroup_OnFitSystemWindowsListenerImplementor.java
Error error: package android.support.v7.widget.ViewStubCompat does not exist
android.support.v7.widget.ViewStubCompat.OnInflateListener
\obj\Debug\android\src\mono\android\support\v7\widget\ViewStubCompat_OnInflateListenerImplementor.java
Did you "update all Nuget packages"? This will download the incorrect versions of the Google libs. You will have to update the Forms packages manually, they will then pull in the required dependencies.
Also make sure you update the packages in all of your projects (the actual Forms project and the platform specific ones).
Finally, clean the solution and rebuild.
James Montemagno explains the issue perfectly here:
Xamarin Forums
I suspect you have updated all packages which will require manual intervention as described by #Krumelur above.

Undefined symbols for architecture i386: "_AudioServicesCreateSystemSoundID"

I am trying to make a soundboard app and i get this error
Undefined symbols for architecture i386:
"_AudioServicesCreateSystemSoundID", referenced from:
-[S0undFXViewController sound1] in S0undFXViewController.o
-[S0undFXViewController sound2] in S0undFXViewController.o
-[S0undFXViewController sound3] in S0undFXViewController.o
-[S0undFXViewController sound4] in S0undFXViewController.o
-[S0undFXViewController sound5] in S0undFXViewController.o
-[S0undFXViewController sound6] in S0undFXViewController.o
I DONT GET IT!!!!!!!
That sort of error is usually caused by a missing framework.
Have you added the AudioServices framework to your project? It isn't enough to just import the header files.
Edit
Actually, if you turn on module support in Xcode, it is enough to just #import the Framework.

Resources