I have created a test project in clipper.
Here is the code for test.prg
store space(1) to mT
# 10,10 say "hellow Time :" get mT pict "!"
read
Here is the generated hbp file code:
-3rd=hbide_version=1.0
-3rd=hbide_type=Executable
-3rd=hbide_title=test
-3rd=hbide_location=d:\hcjs\
-3rd=hbide_workingfolder=
-3rd=hbide_destinationfolder=
-3rd=hbide_output=test
-3rd=hbide_launchparams=
-3rd=hbide_launchprogram=
-3rd=hbide_backupfolder=
-3rd=hbide_xhb=NO
-3rd=hbide_xpp=NO
-3rd=hbide_clp=YES
-inc
-mt
-w3
-es2
-gtwvg
-gui
-lhbwin
-lxhb
test.prg
I have followed the following steps:
1. Open Project
2. I select test.hbp
3. Right-click on Select an environment
4. Select MinGW
5. Again Right Click then Build And Launch
Conversion is not successful. I get some errors. Errors are as follows:
1. Warning: Ambiguous Reference 'mT'
2. Warning: Ambiguous Reference 'GETLIST'
3. Warning: Ambiguous Reference 'GETLIST'
4. Warning: Ambiguous Reference 'GETLIST'
5. Warning: Ambiguous Reference 'GETLIST'
6. Warning: Ambiguous Reference 'GETLIST'
Sorry, cannot launch project because of errors
by the way, it's a warning, not an error. the program should work just fine.
to remove the warning, add these lines to the top of the file :
LOCAL GetList := {}
LOCAL mT
Didn´t you forget to put FUNCTION MAIN() in the first line of your main program? It´s mandatory in [x]Harbour.
Example:
FUNCTION MAIN()
store space(1) to mT
# 10,10 say "hellow Time :" get mT pict "!"
read
If you wanna just make a test like this you don´t need to make a so complicated hbp file to compile it. Just call hbmk2 and the name of the prg file like that:
HBMK2 HELLO.PRG
Related
a= 45
print (a)
It starts saying name "a" is not defined
What to do?
Even if I copy code from somewhere and paste then it says invalid syntax..
Even if I type in everything correct, the response is same as invalid syntax.
Write it in two lines code
a=45
print(a)
There could be 2 simple reason for this error
First reason:
You could been writing in another file not the .py file, for example, it will give you error if you're file is a .css or .html or .js or .java etc.
Second reason:
It could be an error writing in a line for example it should be
a = 45
print (a)
I create javascript project and bower.json. After adding dependencies as follow gives me red-cross on project->bower_components->bootstrap->grunt->change-version.js file and query->src file:
"dependencies":{
"bootstrap":"~3.3.7"
}
This is first problem:
Description Resource Path Location Type
Expected name at 2:1 .eslintrc.json /gruntTest/bower_components/jquery/src line 2 JSON Problem
Second problem:
Description Resource Path Location Type
Unexpected token ILLEGAL change-version.js /gruntTest/bower_components/bootstrap/grunt line 1 JavaScript Problem
I assumed that eclipse neon doesn't need to download Nodeclipse & Enide and try to practice from scratch thats the reason error happened.
Nodeclipse & Enide must installed before practicing nodejs in eclipse.
I followed this link and worked great.
http://www.nodeclipse.org
I am a little confused about how to structure a go web app and its tests. I have read the How to Write Go Code but still don't get it. For example, I have a go project called "beacon" with a beacon.go file at the root. Adding a trivial beacon_test.go file (copied verbatim from http://golang.org/pkg/net/http/httptest/#example_Server) causes this error:
$ go test
# github.com/jelder/beacon
./beacon_test.go:11: main redeclared in this block
previous declaration at ./beacon.go:216
FAIL github.com/jelder/beacon [build failed]
Sure enough, line 11 is func main(). If I instead change the package main line in my beacon_test.go to package hello, I get this error instead:
can't load package: package github.com/jelder/beacon: found packages main (beacon.go) and hello (beacon_test.go) in /Users/jacob/src/github.com/jelder/beacon
beacon_test.go has also a function called main() rename it to TestFirst (or any other name you like as long as it starts with Test, note the uppercase T is important). There is no need for that. Just run go test . from inside the package you are working on (the one containing the *.go files). Post the full files if you need more help.
QDB is a database provided by QNX Neutrino package. I went through the QDB documentation to add a user defined SQL function: http://www.qnx.com/developers/docs/6.5.0/topic/com.qnx.doc.qdb_en_dev_guide/writing_functions.html?cp=2_0_8
I created a source file which had my user define SQL function written in C and qdb_function structure definition. I built it with a make file to create libudf.so.
As suggested by QDB I added Function = udftag#libudf.so in the qdb.cfg. But while running the qdb in the shell prompt, it is giving the error (in bold):
qdb -I basic -V -R set -v -c /etc/sql/qdb.cfg -s de_DE#cldr -o tempstore=/fs/tmpfs
QDB: No script registered for handling corrupt database.
qdb: processing [TempMainAddressBook]Function - Can't access shared library
and qdb is getting exited immediately.
I have tried following things:
made sure sqlite3 library is added in the make file
source code is in strictly in C by using directive : extern "C" to avoid name mangling as the file extension is .cpp. I also tried with .c extension.
given the absolute path of the libudf.so in qdb.cfg as : Function = udftag#/usr/lib/libudf.so
qdb_funcion struct is properly defined in library's source code only.
tried without using the static declaration of function(mentioned in the qdb docs)
After trying all hits and trials also, I am getting the same error every time which is Can't access shared library
If any one has any idea to resolve this error please share.
Suggestion 1: run qdb by setting LD_DEBUG=1, like in:
LD_DEBUG=1 qdb command line options
This will output a lot of debug information from the dynamic loader as it attempts to locate and then load the .so files. Check what is the path that it output before the "Can't access" message is displayed.
Suggestion 2: obvious but make sure that the permissions are OK for the .so file. Do you have the execution permission set?
Suggestion 3: check if the error message is identical if you completely remove the .so file from the system
Suggestion 4: increase the number of lower-case 'v'-s. QDB likely supports more, with progressively more verbose information provided as you increase the numbers (6 should be enough for full verbosity)
Some old third party code gives warning:
Using 'stringWithString' with a literal is redundant
Instead of modifying the source codes, I'd prefer to disable the warning in Xcode. What is the compiler switch to disable this specific warning?
The warning message should tell you the name of the warning. You can then turn that warning off.
test.m:4:5: warning: using 'stringWithString:' with a literal is redundant
[-Wobjc-redundant-literal-use]
so you want to add the flag -Wno-objc-redundant-literal-use to the compiler flags for that file or that project.
One way to do that is :
Select your target .
Go to the compiled sources.
Select your .m file and set flag -w to suppress all the warning of that file .