in Form1
public: System::Windows::Forms::Label^ TUserName;
in Form2
public: System::Windows::Forms::Label^ OutTex;
in Form2 click button B1
private: System::Void B1_Click(System::Object^ sender, System::EventArgs^ e) {
Form1^ RunC = gcnew Form1;
OutTex->Text = RunC->TUserName->Text;
}
compile error
Error 1 error C2065: 'Form1' : undeclared identifier d:\Project\Form2.h 1030 1 Project1
Error 2 error C2065: 'RunC' : undeclared identifier d:\Project\Form2.h 1030 1 Project1
Error 3 error C2061: syntax error : identifier 'Form1' d:\Project\Form2.h 1030 1 Project1
Error 4 error C2065: 'RunC' : undeclared identifier d:\Project\Form2.h 1032 1 Project1
Error 5 error C2227: left of '->TUserName' must point to class/struct/union/generic type d:\Project\Form2.h 1032 1 Project1
Error 6 error C2227: left of '->Text' must point to class/struct/union/generic type d:\Project\Form2.h 1032 1 Project1
please help me for Solve this problem
Related
I would like to pass the integrated gpu from the host os (ubuntu 20.04) to the windows 10 guest os with xen. This is because xen works great for me,better than qemu-kvm for my specific needs and because I have only two graphic cards. The nvidia rtx 2080 ti that I have already passed to the guest,and the intel UHD 630,that can be duplicated from the host to the guest so that it can be used in both places without interruptions. So I'm trying to build this repository :
https://github.com/intel/gvt-linux/wiki/GVTg_Setup_Guide#332-build-qemu--xen-for-xengt
but at some point,I get these errors :
../../libacpi/build.c: In function ‘construct_secondary_tables’:
../../libacpi/build.c:384:49: error: ‘ssdt_pm’ undeclared (first use in this function); did you mean ‘ssdt’?
384 | ssdt = ctxt->mem_ops.alloc(ctxt, sizeof(ssdt_pm), 16);
| ^~~~~~~
| ssdt
../../libacpi/build.c:384:49: note: each undeclared identifier is reported only once for each function it appears in
../../libacpi/build.c:392:49: error: ‘ssdt_s3’ undeclared (first use in this function); did you mean ‘ssdt’?
392 | ssdt = ctxt->mem_ops.alloc(ctxt, sizeof(ssdt_s3), 16);
| ^~~~~~~
| ssdt
../../libacpi/build.c:402:49: error: ‘ssdt_s4’ undeclared (first use in this function); did you mean ‘ssdt’?
402 | ssdt = ctxt->mem_ops.alloc(ctxt, sizeof(ssdt_s4), 16);
| ^~~~~~~
| ssdt
../../libacpi/build.c:412:49: error: ‘ssdt_laptop_slate’ undeclared (first use in this function); did you mean ‘ssdt
_laptop_slate_aml_code’?
412 | ssdt = ctxt->mem_ops.alloc(ctxt, sizeof(ssdt_laptop_slate), 16);
| ^~~~~~~~~~~~~~~~~
| ssdt_laptop_slate_aml_code
../../libacpi/build.c:426:49: error: ‘ssdt_tpm’ undeclared (first use in this function)
426 | ssdt = ctxt->mem_ops.alloc(ctxt, sizeof(ssdt_tpm), 16);
| ^~~~~~~~
do u know if there is a patch ? where I can get it ? how can I fix these errors ? very thanks.
This is the content of the file build.c
https://pastebin.com/sUFp4N8V
Trying to build my first app on react-native , of an existing project but unfortunately getting an error while building the app by react-native run-android
seems everything working fine but getting this error
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':react-native-music-control:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
can anybody hints me whats wrong ?
Full error log =>
cd android && ./gradlew installDebug --stacktrace
Configure project :realm
WARNING: The following project options are deprecated and have been removed:
android.enableAapt2
This property has no effect, AAPT2 is now always used.
WARNING: The specified Android SDK Build Tools version (27.0.3) is ignored, as it is below the minimum supported version (28.0.3) for Android Gradle Plugin 3.3.0.
Android SDK Build Tools 28.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '27.0.3'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
Task :react-native-music-control:compileDebugJavaWithJavac FAILED
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlModule.java:26: error: package androidx.media.app.NotificationCompat does not exist
import androidx.media.app.NotificationCompat.MediaStyle;
^
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:4: error: package androidx.media does not exist
import androidx.media.VolumeProviderCompat;
^
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:92: error: cannot find symbol
public static class VolumeListener extends VolumeProviderCompat {
^
symbol: class VolumeProviderCompat
location: class MusicControlListener
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlModule.java:122: error: incompatible types: VolumeListener cannot be converted to VolumeProviderCompat
session.setPlaybackToRemote(volume);
^
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlModule.java:135: error: cannot find symbol
nb.setStyle(new MediaStyle().setMediaSession(session.getSessionToken()));
^
symbol: class MediaStyle
location: class MusicControlModule
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlModule.java:298: error: cannot find symbol
int maxVol = info.hasKey("maxVolume") ? info.getInt("maxVolume") : volume.getMaxVolume();
^
symbol: method getMaxVolume()
location: variable volume of type VolumeListener
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlModule.java:299: error: cannot find symbol
int vol = info.hasKey("volume") ? info.getInt("volume") : volume.getCurrentVolume();
^
symbol: method getCurrentVolume()
location: variable volume of type VolumeListener
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlModule.java:323: error: incompatible types: VolumeListener cannot be converted to VolumeProviderCompat
session.setPlaybackToRemote(volume.create(null, maxVol, vol));
^
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlModule.java:385: error: incompatible types: VolumeListener cannot be converted to VolumeProviderCompat
if(remoteVolume) session.setPlaybackToRemote(volume);
^
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlModule.java:390: error: incompatible types: VolumeListener cannot be converted to VolumeProviderCompat
session.setPlaybackToRemote(volume);
^
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:96: error: cannot find symbol
super(changeable ? VOLUME_CONTROL_ABSOLUTE : VOLUME_CONTROL_FIXED, maxVolume, currentVolume);
^
symbol: variable VOLUME_CONTROL_ABSOLUTE
location: class VolumeListener
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:96: error: cannot find symbol
super(changeable ? VOLUME_CONTROL_ABSOLUTE : VOLUME_CONTROL_FIXED, maxVolume, currentVolume);
^
symbol: variable VOLUME_CONTROL_FIXED
location: class VolumeListener
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:101: error: cannot find symbol
return getVolumeControl() != VolumeProviderCompat.VOLUME_CONTROL_FIXED;
^
symbol: method getVolumeControl()
location: class VolumeListener
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:101: error: cannot find symbol
return getVolumeControl() != VolumeProviderCompat.VOLUME_CONTROL_FIXED;
^
symbol: variable VolumeProviderCompat
location: class VolumeListener
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:104: error: method does not override or implement a method from a supertype
#Override
^
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:106: error: cannot find symbol
setCurrentVolume(volume);
^
symbol: method setCurrentVolume(int)
location: class VolumeListener
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:110: error: method does not override or implement a method from a supertype
#Override
^
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:112: error: cannot find symbol
int maxVolume = getMaxVolume();
^
symbol: method getMaxVolume()
location: class VolumeListener
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:114: error: cannot find symbol
int volume = Math.max(Math.min(getCurrentVolume() + tick, maxVolume), 0);
^
symbol: method getCurrentVolume()
location: class VolumeListener
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:116: error: cannot find symbol
setCurrentVolume(volume);
^
symbol: method setCurrentVolume(int)
location: class VolumeListener
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:122: error: cannot find symbol
currentVolume = getCurrentVolume();
^
symbol: method getCurrentVolume()
location: class VolumeListener
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:124: error: cannot find symbol
setCurrentVolume(currentVolume);
^
symbol: method setCurrentVolume(Integer)
location: class VolumeListener
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:128: error: cannot find symbol
if(maxVolume == null) maxVolume = getMaxVolume();
^
symbol: method getMaxVolume()
location: class VolumeListener
/root/SCRIPTLOCATION/Social and Sharing/codecanyon-23049351-musicengine-mobile-applications/app/node_modules/react-native-music-control/android/src/main/java/com/tanguyantoine/react/MusicControlListener.java:130: error: cannot find symbol
if(changeable == isChangeable() && maxVolume == getMaxVolume()) return this;
^
symbol: method getMaxVolume()
location: class VolumeListener
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
24 errors
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':react-native-music-control:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':react-native-music-control:compileDebugJavaWithJavac'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:110)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:77)
at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59)
at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101)
at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:44)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:91)
at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:59)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.run(EventFiringTaskExecuter.java:51)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:46)
at org.gradle.execution.taskgraph.LocalTaskInfoExecutor.execute(LocalTaskInfoExecutor.java:42)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:277)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:262)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:135)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:130)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.execute(DefaultTaskPlanExecutor.java:200)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.executeWithWork(DefaultTaskPlanExecutor.java:191)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.run(DefaultTaskPlanExecutor.java:130)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:74)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph.execute(DefaultTaskExecutionGraph.java:143)
at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:40)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:40)
at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:24)
at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:46)
at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:49)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:40)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:33)
at org.gradle.initialization.DefaultGradleLauncher$ExecuteTasks.run(DefaultGradleLauncher.java:355)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.initialization.DefaultGradleLauncher.runTasks(DefaultGradleLauncher.java:219)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:149)
at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:124)
at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:77)
at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:74)
at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:154)
at org.gradle.internal.work.StopShieldingWorkerLeaseService.withLocks(StopShieldingWorkerLeaseService.java:38)
at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:96)
at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:74)
at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.run(RunAsBuildOperationBuildActionRunner.java:50)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:45)
at org.gradle.tooling.internal.provider.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:51)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:47)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:44)
at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:79)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:44)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:30)
at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:39)
at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:25)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:80)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:53)
at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:62)
at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:34)
at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:36)
at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:25)
at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:43)
at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:29)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:59)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:31)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:59)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:44)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:46)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:30)
at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
at org.gradle.util.Swapper.swap(Swapper.java:38)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:62)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:81)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:295)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
Caused by: org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed; see the compiler error output for details.
at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:52)
at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:36)
at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJavaCompiler.java:100)
at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:52)
at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:38)
at org.gradle.api.internal.tasks.compile.AnnotationProcessorDiscoveringCompiler.execute(AnnotationProcessorDiscoveringCompiler.java:49)
at org.gradle.api.internal.tasks.compile.AnnotationProcessorDiscoveringCompiler.execute(AnnotationProcessorDiscoveringCompiler.java:35)
at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:39)
at org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilerFactory$2.execute(IncrementalCompilerFactory.java:110)
at org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilerFactory$2.execute(IncrementalCompilerFactory.java:106)
at org.gradle.api.internal.tasks.compile.incremental.IncrementalResultStoringCompiler.execute(IncrementalResultStoringCompiler.java:59)
at org.gradle.api.internal.tasks.compile.incremental.IncrementalResultStoringCompiler.execute(IncrementalResultStoringCompiler.java:43)
at org.gradle.api.tasks.compile.JavaCompile.performCompilation(JavaCompile.java:153)
at org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:121)
at com.android.build.gradle.tasks.AndroidJavaCompile.compile(AndroidJavaCompile.kt:233)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:50)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:131)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:120)
at
If you are using React Native >= 0.60 please ensure to migrate your dependencies from android.support to androidx by running npx jetify. Make sure that gradle.properties file contains following lines:
android.useAndroidX=true
android.enableJetifier=true
Failed to Compile: Parsing error unexpected token. The error is on line 20
I am new to React I was following a Brad Traversy tutorial and cant seem to debug this code error. I included the full code below.
./src/Components/AddProject.js
Line 20: Parsing error: Unexpected token
18 | e.preventDefault();
19 | }
> 20 | if(this.refs.title.value === ''){
| ^
21 | alert('Title is required');
22 | } else {
23 | this.setState({newProject:{
You cannot attach flying code in an ES6 JavaScript Class.
It actually doesn't mean anything.
A ES6 Javascript Class will only accept constructor, fields and methods.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes
Are you sure that the code below the line of the syntax error shouldn't be wrapped into a method or into render() ?
I am new to kernel compilation. I want to create the Blinking LED driver for Raspberry Pi 1 Model B but as a first step towards the goal, I am trying to cross-compile unmodified Raspberry pi Kernel and following this article.
Everything goes fine until step 7. In step 7, when I enter cross compile command, it shows this:
$ make ARCH=arm CROSS_COMPILE=${CCPREFIX}
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
In file included from ./arch/arm/include/asm/bug.h:6:0,
from include/linux/bug.h:4,
from include/linux/page-flags.h:9,
from kernel/bounds.c:9:
./arch/arm/include/asm/opcodes.h:14:52: error: unknown type name 'u32'
./arch/arm/include/asm/opcodes.h:14:64: error: unknown type name 'u32'
In file included from ./arch/arm/include/asm/irqflags.h:6:0,
from include/linux/irqflags.h:15,
from ./arch/arm/include/asm/bitops.h:27,
from include/linux/bitops.h:36,
from include/linux/log2.h:16,
from kernel/bounds.c:12:
./arch/arm/include/asm/ptrace.h:125:1: error: unknown type name 'bool'
./arch/arm/include/asm/ptrace.h: In function 'regs_get_register':
./arch/arm/include/asm/ptrace.h:141:6: error: expected expression before 'struct'
In file included from include/linux/bitops.h:36:0,
from include/linux/log2.h:16,
from kernel/bounds.c:12:
./arch/arm/include/asm/bitops.h: In function '____atomic_set_bit':
./arch/arm/include/asm/bitops.h:38:23: error: 'BITS_PER_LONG' undeclared (first use in this function)
./arch/arm/include/asm/bitops.h:38:23: note: each undeclared identifier is reported only once for each function it appears in
./arch/arm/include/asm/bitops.h: In function '____atomic_clear_bit':
./arch/arm/include/asm/bitops.h:50:23: error: 'BITS_PER_LONG' undeclared (first use in this function)
./arch/arm/include/asm/bitops.h: In function '____atomic_change_bit':
./arch/arm/include/asm/bitops.h:62:23: error: 'BITS_PER_LONG' undeclared (first use in this function)
./arch/arm/include/asm/bitops.h: In function '____atomic_test_and_set_bit':
./arch/arm/include/asm/bitops.h:76:23: error: 'BITS_PER_LONG' undeclared (first use in this function)
./arch/arm/include/asm/bitops.h: In function '____atomic_test_and_clear_bit':
./arch/arm/include/asm/bitops.h:93:23: error: 'BITS_PER_LONG' undeclared (first use in this function)
./arch/arm/include/asm/bitops.h: In function '____atomic_test_and_change_bit':
./arch/arm/include/asm/bitops.h:110:23: error: 'BITS_PER_LONG' undeclared (first use in this function)
In file included from ./arch/arm/include/asm/bitops.h:122:0,
from include/linux/bitops.h:36,
from include/linux/log2.h:16,
from kernel/bounds.c:12:
include/asm-generic/bitops/non-atomic.h: In function '__set_bit':
include/asm-generic/bitops/non-atomic.h:17:23: error: 'BITS_PER_LONG' undeclared (first use in this function)
include/asm-generic/bitops/non-atomic.h: In function '__clear_bit':
include/asm-generic/bitops/non-atomic.h:25:23: error: 'BITS_PER_LONG' undeclared (first use in this function)
include/asm-generic/bitops/non-atomic.h: In function '__change_bit':
include/asm-generic/bitops/non-atomic.h:42:23: error: 'BITS_PER_LONG' undeclared (first use in this function)
include/asm-generic/bitops/non-atomic.h: In function '__test_and_set_bit':
include/asm-generic/bitops/non-atomic.h:59:23: error: 'BITS_PER_LONG' undeclared (first use in this function)
include/asm-generic/bitops/non-atomic.h: In function '__test_and_clear_bit':
include/asm-generic/bitops/non-atomic.h:78:23: error: 'BITS_PER_LONG' undeclared (first use in this function)
include/asm-generic/bitops/non-atomic.h: In function '__test_and_change_bit':
include/asm-generic/bitops/non-atomic.h:90:23: error: 'BITS_PER_LONG' undeclared (first use in this function)
include/asm-generic/bitops/non-atomic.h: In function 'test_bit':
include/asm-generic/bitops/non-atomic.h:105:21: error: 'BITS_PER_LONG' undeclared (first use in this function)
In file included from ./arch/arm/include/asm/bitops.h:312:0,
from include/linux/bitops.h:36,
from include/linux/log2.h:16,
from kernel/bounds.c:12:
include/asm-generic/bitops/fls64.h: At top level:
include/asm-generic/bitops/fls64.h:33:2: error: #error BITS_PER_LONG not 32 or 64
In file included from ./arch/arm/include/asm/bitops.h:314:0,
from include/linux/bitops.h:36,
from include/linux/log2.h:16,
from kernel/bounds.c:12:
include/asm-generic/bitops/sched.h: In function 'sched_find_first_bit':
include/asm-generic/bitops/sched.h:27:2: error: #error BITS_PER_LONG not defined
In file included from include/linux/log2.h:16:0,
from kernel/bounds.c:12:
include/linux/bitops.h: At top level:
include/linux/bitops.h:202:37: error: unknown type name 'u64'
include/linux/bitops.h:208:2: error: #error BITS_PER_LONG not 32 or 64
In file included from kernel/bounds.c:12:0:
include/linux/log2.h:32:17: error: unknown type name 'u32'
include/linux/log2.h:40:17: error: unknown type name 'u64'
include/linux/log2.h:52:1: error: unknown type name 'bool'
Kbuild:44: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 1
Makefile:1004: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
I have not made any changes in any kernel file. I am not sure why bounds.c has a problem. Also, I downloaded the compressed version of the kernel file so I don't think it is a checkout/update issue. I have to confess I am confused as to what this error actually means. Am I missing something?
Thanks in advance
EDIT:
(1) printenv before step #6
$ printenv
XDG_VTNR=7
XDG_SESSION_ID=c2
CLUTTER_IM_MODULE=xim
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/omkar
SESSION=ubuntu
GPG_AGENT_INFO=/home/omkar/.gnupg/S.gpg-agent:0:1
SHELL=/bin/bash
TERM=xterm-256color
VTE_VERSION=4205
QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
WINDOWID=58720266
KERNEL_SRC=/home/bhargav/rpi/linux-rpi-3.2.27
OLDPWD=/home/omkar/rpi
UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1623
GNOME_KEYRING_CONTROL=
GTK_MODULES=gail:atk-bridge:unity-gtk-module
USER=omkar
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
QT_ACCESSIBILITY=1
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg
PATH=/home/omkar/bin:/home/omkar/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
DESKTOP_SESSION=ubuntu
QT_IM_MODULE=ibus
QT_QPA_PLATFORMTHEME=appmenu-qt5
XDG_SESSION_TYPE=x11
PWD=/home/omkar/rpi/linux-rpi-4.4.y
JOB=unity-settings-daemon
XMODIFIERS=#im=ibus
GNOME_KEYRING_PID=
LANG=en_US.UTF-8
GDM_LANG=en_US
MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
IM_CONFIG_PHASE=1
COMPIZ_CONFIG_PROFILE=ubuntu
GDMSESSION=ubuntu
SESSIONTYPE=gnome-session
GTK2_MODULES=overlay-scrollbar
HOME=/home/omkar
XDG_SEAT=seat0
SHLVL=1
LANGUAGE=en_US
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
UPSTART_INSTANCE=
UPSTART_EVENTS=xsession started
XDG_SESSION_DESKTOP=ubuntu
LOGNAME=omkar
COMPIZ_BIN_PATH=/usr/bin/
QT4_IM_MODULE=xim
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-S9i5BrLSwB
CCPREFIX=/home/omkar/rpi/tools-master/arm-bcm2708/arm-bcm2708-linux-gnueabi/bin/arm-bcm2708-linux-gnueabi-
LESSOPEN=| /usr/bin/lesspipe %s
INSTANCE=
UPSTART_JOB=unity7
XDG_RUNTIME_DIR=/run/user/1000
DISPLAY=:0
XDG_CURRENT_DESKTOP=Unity
GTK_IM_MODULE=ibus
LESSCLOSE=/usr/bin/lesspipe %s %s
XAUTHORITY=/home/omkar/.Xauthority
_=/usr/bin/printenv
(2) Output of step #6
$ make ARCH=arm CROSS_COMPILE=${CCPREFIX} bcmrpi_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
I want display full path + name + extension of image file to Visual C++ TextBox (Windows Form), when i try to build that, it's failed:
1>------ Build started: Project: Testing, Configuration: Debug Win32 ------
1> Testing.cpp
1>Testing.obj : error LNK2020: unresolved token (06000003) Testing.Form1::GetFileName
1>c:\users\febri nur hidayat\documents\visual studio 2010\Projects\Testing\Debug\Testing.exe : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
here is my source code :
private: System::Void textBox1_Click(System::Object^ sender, System::EventArgs^ e) {
if(openFileDialog1->ShowDialog() == System::Windows::Forms::DialogResult::OK){
this->pictureBox1->Image = Image::FromFile(openFileDialog1->FileName);
String^ sourceImage;
citra = Path::GetFileName(openFileDialog1->FileName);
this->textBox1->Text = sourceImage;
}
}
any advice or what should i code?