solc.exe - Application Error The application was unable to start correctly - solidity

Solidity compiler is not working on Win 7 Enterprise (64-bit) SP1.
It was downloaded from https://github.com/ethereum/solidity/releases
Version 0.4.19 (solidity-windows.zip)
solc --version
Error : solc.exe - Application Error
The application was unable to start correctly (0x...). Click OK to close the application.
Content of solidity-windows folder :
<DIR> .
<DIR> ..
440,120 msvcp140.dll
6,201,344 solc.exe
16,123,392 soltest.exe

Seems answer is located here : https://ethereum.stackexchange.com/questions/11081/install-solc-compiler-on-windows-8
So either MS Visual Studio needs to be installed (suggested 2015) or JS script needs to be written (using Node.js solc module)
The remaining concern is that MS Visual Studio is too huge for installation for resolving mentioned issue. Is anyone aware what exact software component(s) from MS Visual Studio are needed? And described solution with JS script returns errors for the contracts which have import statements.
>node compileWithoutInstalledMSStudio -f file1.sol
Solc version : 0.4.19+commit.c4cbbb05.Emscripten.clang
Read file : ../solidity/file1.sol
COMPILATION ERROR :
:4:1: ParserError: Source "file2.sol" not found: File not supplied initially.
import "./file2.sol";
^----------------------------^

Related

How to fix compiling Friday Night Funkin by ninjamuffin 99 from source code but there is no .exe after being compiled?

I tried to compile the source code but there is no .exe https://i.stack.imgur.com/CY4jQ.png
I followed the instructions that is from github https://github.com/ninjamuffin99/Funkin and still it don't fixed it. When I tried to compile the source code in cmd after I typed in lime test windows -debug it shows this
C:/HaxeToolkit/haxe/lib/polymod/git/polymod/format/XMLMerge.hx:189: characters 10-23 : Warning : This typedef is deprecated in favor of haxe.xml.Access
C:/HaxeToolkit/haxe/lib/polymod/git/polymod/format/XMLMerge.hx:189: characters 30-43 : Warning : This typedef is deprecated in favor of haxe.xml.Access
source/PlayState.hx:299: characters 3-39 : Warning : `FlxCamera.defaultCameras` is deprecated, use `FlxG.cameras.setDefaultDrawTarget` instead
C:\Users\username\Downloads\FNF MODDING\Kade-Engine-master\Kade-Engine-master\export\debug\windows\obj>setlocal enabledelayedexpansion
Warning: Could not find Visual Studio 2017 VsDevCmd
Missing HXCPP_VARS
Error: Could not automatically setup MSVC
can you help me please?
Googling "Could not automatically setup MSVC" the most common error seems to be failing to restart your PC after installing VS.
I've found that VS has a separate shortcut for "Visual Studio Command Prompt", are you using that rather than a generic command window?

Meet with error when running GetStarted example of IoT DevKit

After running automated install script, I opened GetStarted example - and am getting AZ3166wifi.h, AzureIoTHub.h, DevKitMQTTClient.h and SystemTickCounter.h not found errors in VSCode "problem" tab.
"file: 'file:///c%3A/Users/alias/Documents/Arduino/generated_examples/GetStarted_1/GetStarted.ino' severity: 'Info'
message: '#include errors detected. Please update your includePath. IntelliSense features for this translation unit (c:\Users\alias\Documents\Arduino\generated_examples\GetStarted_1\GetStarted.ino) will be provided by the Tag Parser.'
at: '4,1'
source: ''"
I re-ran the automated script and had no errors. Add the additional url as directed by the manual install page. Still the same issue.
Those files exists in our Arduino AZ3166 package.
You could find them under C:\Users{your username}\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\1.2.0\cores\Arduino and C:\Users{your user name}\AppData\Local\Arduino15\packages\AZ3166\hardware\stm32f4\1.2.0\libraries.
It is not included in mini solution folder as when compiling the code, the compiler would auto find those files.
We are working on the fix for the Intellisense problem.

Luxe - "Type not found : UserConfigDef" after updating

I've just updated Haxe, Luxe, Hxcpp, etc. on Windows after not using them for a while, and now none of my projects will compile, not even the "empty" sample. I get the following in cmd:
C:\GAMEDEV\empty>haxelib run flow run
flow / 1.0.0-alpha.2 (node.js v0.12.7)
flow / target is windows ( arch 32 )
flow / haxe version 3.3.0
flow / build - empty 1.0.0 for windows
flow / build - running haxe ...
C:\HaxeToolkit\haxe\lib\snow\git\snow/types/Types.hx:72: characters 25-38 : Type
not found : UserConfigDef
C:\GAMEDEV\empty>
Same error when building from Sublime package. Is it possible that I've broken something? Should I attempt to completely reinstall?
It seems that Luxe is not compatible with Haxe 3.3.0-rc1 yet - there is an open issue about it on GitHub. Try downgrading to Haxe 3.2.1.
You may also need to downgrade hxcpp to 3.2.205 if you run into any cpp compilation issues.

Unable to load dynamic library php_sqlsrv_7_nts.dll is not a valid Win32 application

Thought I'd see if there were any sql server drivers for php 7. Another question on Stack Overflow pointed me to these drivers here
So I install php_sqlsrv_7_nts.dll into my ext folder and add the following line to my php.ini:
extension=php_sqlsrv_7_nts.dll
I get this warning on every php script I run:
Warning: PHP Startup: Unable to load dynamic library 'C:\php7\ext\php_sqlsrv_7_nts.dll' - %1 is not a valid Win32 application
I realise this is just a pre-release version and there are many things to iron out still, but I was hoping to at least do some basic things.
What am I doing wrong, or do I need to wait a bit more for a better release.
Some info that might be useful:
PHP Version => 7.0.5
System => Windows NT GB275L-I-T-5654 6.3 build 9600 (Windows 8.1 Professional Edition) i586
Build Date => Mar 30 2016 09:57:56
Compiler => MSVC14 (Visual C++ 2015)
Architecture => x86
Configure Command => cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--disable-zts" "--with-pdo-oci=c:\php-sdk\oracle\x86\instantclient_12_1\sdk,shared" "--with-oci8-12c=c:\php-sdk\oracle\x86\instantclient_12_1\sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet=shared" "--with-mcrypt=static" "--without-analyzer" "--with-pgo"
Finally got this solved. Needed to install some more things before it would work, namely:
Microsoft Visual C++ 2015 Redistributable (x86) which you can get from here
The ODBC drivers which you can get from here
It works for me.
1.Download the extension windows 7.0
https://github.com/Microsoft/msphpsql/releases
2.And then according to the system requirement paste it in ext folder.
Note: Paste only the thread safe version (php_pdo_sqlsrv_7_ts.dll , php_sqlsrv_7_ts.dll)
3.And edit the php.ini file add this extension to your php.ini file and restart and check
The extension file from Github MSPHPSQL releases did not work for me and gave me the same predicament with the OP. I went to this Microsoft article which gave me the driver (extension) for MSSQL Server, go ahead and install it on a directory you can easily find, in my case I saved it in my c:\mssql-driver then inside get the extension (DLL) file that fits your OS and PHP version, in my case since I am using PHP 7.2.x and x64 Windows I picked the following file and put it in my PHP extension directory c:\xampp\php\ext:
php_pdo_sqlsrv_72_ts_x64.dll
php_sqlsrv_72_ts_x64.dll
and in my php.ini located in c:\xampp\php\php.ini defined it under the Dynamic Extensions section:
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
...
extension=curl
extension=php_pdo_sqlsrv_72_ts_x64.dll
extension=php_sqlsrv_72_ts_x64.dll
...
delete the "php_" on "php_sqlsrv_7_nts". just write "sqlsrv_7_nts"

Flash Builder - Platform conversion failed error during release build

This is a very annoying problem while generating release build files. Here is the steps I did while building:
Select Project > Export Release Build
Select Signed Native Installer
Import certificate
Click Next.
I always got the following error:
https://forums.adobe.com/servlet/JiveServlet/showImage/2-6524012-651585/build_error.png
Platform conversion failed. Process exited with error 5. Output was
"[ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2
text="Unhandled exception Error: EndUpdateResource: Windows Error #5"
errorID=0]
I have the following setup:
OS: Windows 8.1
System type: 64-bit
Flash Builder Version: 4.6 Premium
Installed FB: FlashBuilder_4_6_LS10.exe
Please help. This is giving me a lot of headaches for a couple of days now.
Additionally, here's the stack trace:
java.io.IOException: Platform conversion failed. Process exited with
error 5. Output was "[ErrorEvent type="error" bubbles=false
cancelable=false eventPhase=2 text="Unhandled exception Error:
EndUpdateResource: Windows Error #5" errorID=0] " at
com.adobe.air.nai.NativePackager.conversionFail(NativePackager.java:222)
at
com.adobe.air.nai.NativePackager.invokePlatformConversion(NativePackager.java:203)
at
com.adobe.air.nai.NativePackager.createPackage(NativePackager.java:92)
at
com.adobe.flexbuilder.multisdk.apollo.export.AIRNativeInstallerPackager.create(AIRNativeI
nstallerPackager.java:129) at
com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersionManager.doExport(Ex
portReleaseVersionManager.java:586) at
com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionWizard$1.run(Exp
ortReleaseVersionWizard.java:208)
I also suspect this is because of the following settings:
Eclipse.ini
https://forums.adobe.com/servlet/JiveServlet/showImage/2-6525217-651726/eclipse.png
...
-startup plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher_library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502.jar
...
Notice that the plugin used is not intended for x64 processors.
#ActionScript3030 is correct, for anyone finding this later on, if you re-link your Library Paths (even if they look correct) this should rectify your issue.
The issue is caused by the links not being able to resolve to their GUID counterparts in your AppData/Local folder. This happens quite commonly when you create a new user profile and try to copy over your old user profiles information.
I already figured this out. I created a virtual machine with windows 7 32bit operating system and I'm happy now :)
If you initially created your project on a different system then try to compile it in another system, the class source and swc paths may not match. These paths could be there but not being implemented in code, so you will not get any run time errors while debugging, but it will give you the error 5 during compilation.
Solution:
Remove the idle paths not directly in use in your code. You can identify them by simply checking the path.
Found the same issue when trying to use Microsoft Essential Security on my Windows 7 x32. When i uinstall it - problem gone. So try to check your firewall settings if stucking the same problem.
Just to add an alternative solution (I'm on an x64 Windows and want to keep build exported for x64), in my case the error popped up when building the project with the AIR SDK defined in the app.xml (an older one, 3.9) and went away when I explicitly used a newer SDK (19).
(Disclaimer: I used the command line adt tool from the SDK to build, not Flash Builder).
A little late, but might possibly help someone.
I had the same error recently with FlashDevelop. Figured out that the my path was too long. When I renamed some long folder and file names, the error disappeared.
Try to disable UAC on Windows 8. Change it to "Never notify". The problem