Comments (6)
Hi,
I didn't realize there was such a thing as windows 7 starter until you
pointed it out :). Hopefully it isn't so badly mangled that it can't
handle environment variables...
The tools are supposed to utilize environment variables in the .CFG
files. So ORANGEC is an environment variable that has been previously
set up. For example:
set ORANGEC=c:\orangec
So you would have had to either set it up yourself as an environment
variable, or let the install package set it up for you. But I think if
you install it from the install package, you would have to explicitly
set the option to run from the command line to get it set up...
David
lionfaith wrote:
I tried to compile a little sample through command line and had errors:
Error factorial.c(3): Cannot open include file "stdio.h"
Warning factorial.c(12): Call to function 'printf' without a prototype
in function main
Warning factorial.c(13): Call to function 'scanf' without a prototype
in function main
Warning factorial.c(16): Call to function 'printf' without a prototype
in function main
Warning factorial.c(20): Call to function 'printf' without a prototype
in function mainI replaced %ORANGEC% variable in occ.cfg with the actual path to
OrangeC directory and occ then reported linking error:
Error: Input file 'c0xpe.o' does not exist.
Warning: Library 'climp.l' does not exist
Warning: Library 'clwin.l' does not exist
Error: Undefined External printf in module C:\dev\c_tests\hello.c".I made the same modification in ocl.cfg and olinker.cfg and now it
works fine. I suppose %ORANGEC% didn't get expanded. By the way, if it
helps, my system is a Winwows7 Starter.—
Reply to this email directly or view it on GitHub
#3.
from orangec.
Hi!
That's it! I was using the zipped version of the package hence ORANGEC wasn't set. It is now and it all works fine. Is the need for such a variable mentionned anywhere in the documentation? I might have missed it.
Thanks for the nice and fast answer,
Lionel
from orangec.
Hi,
glad that was it! It is mentioned briefly in c:\orangec\readme.txt,
but maybe I ought to make it more obvious :)
David
lionfaith wrote:
Hi!
That's it! I was using the zipped version of the package hence ORANGEC
wasn't set. It is now and it all works fine. Is the need for such a
variable mentionned anywhere in the documentation? I might have missed it.
Thanks for the nice and fast answer,
Lionel—
Reply to this email directly or view it on GitHub
#3 (comment).
from orangec.
Hi,
my fault actually, I haven't read orangec\readme.txt. Instead, I've mainly read orancec\help*.chm. When I got stuck with my problem, I've sought for the solution in orangec\help\tools.chm at "OCC compiler" topic, "specifying include path" page. I've also searched orangec\doc. I hope those informations will help :)
Lionel
from orangec.
I'm adding a comment about this in the places you searched :)
from orangec.
Big thanks. I'm sure it will help future like me. :)
from orangec.
Related Issues (20)
- FR: please add the tools' purpose to their help output
- Remove Coff2IEEE HOT 1
- `occ -M` doesn't print anything to stdio
- Orange C failed to compile this project HOT 2
- IDE program not properly installed in new install of v67.3.1 on Windows 10 as current user HOT 3
- Incorrect conversion of double precision constants to IEEE-754 format HOT 5
- Segfault during Lua compilation HOT 1
- add __FUNCTION__ preprocessor macro
- Supposed C99 standard incompatibility with lvalue in expression list HOT 9
- Handle directory separator properly
- Utils::AddExt not compatible with source files with more than one dot HOT 5
- Can I compile only omake? HOT 6
- Please setup a Nightly release HOT 1
- Please fix your read the docs site HOT 4
- Testing Orange C with CMake HOT 6
- Please run some popular static analyzers on your code! HOT 1
- Testing Orange C with CMake 2
- Testing OMake with CMake
- The links on `read the docs` page is broken HOT 3
- Moving away from `read the docs` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from orangec.