Forums

compile fail?

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

compile fail?

Postby gauthier » Sat Mar 21, 2009 6:06 pm

I'm getting this message while compiling on linux box:

Code: Select all
/home/gauthier/cobra-workspace/Source/Snapshot/Cobra.Lang/StringMaker.cobra(42): error: Too many characters in character literal
Compiler.cobra(733): error: Too many characters in character literal
Compilation failed - 2 errors, 0 warnings


I'm compiling with ./comp , am I doing anything wrong?
gauthier
 
Posts: 116

Re: compile fail?

Postby Charles » Sat Mar 21, 2009 6:24 pm

You're not doing anything wrong. Note that Mono 2.2 has a horrible C# parsing bug in it that makes it unusable.

This works for me on Mac OS X 10.4 with Mono 2.4 RCsomething:

$ cd Cobra/Workspace
$ svn up
$ svn info
Path: .
URL: http://cobra-language.com/svn/cobra/trunk
Repository Root: http://cobra-language.com/svn
Repository UUID: 30746285-aa12-4141-907f-d1d40c2173e5
Revision: 1992
Node Kind: directory
Schedule: normal
Last Changed Author: Chuck.Esterbrook
Last Changed Rev: 1992
Last Changed Date: 2009-03-20 08:37:50 -0700 (Fri, 20 Mar 2009)
$ cd Source
$ ./comp
Expr.cobra(334): warning: "AnonymousMethodExpr._returnTypeProxy" hides inherited member "AnonymousExpr._returnTypeProxy". Use the new keyword if hiding was intended (C#)
Utils.cobra(368): warning: "System.Reflection.Assembly.LoadWithPartialName(string)" is obsolete (C#)
Compilation succeeded - 2 warnings
timeit = 00:00:24.8034090
$ mono --version
Mono JIT compiler version 2.4 (tarball Mon Mar 9 14:38:02 MDT 2009)
Copyright (C) 2002-2008 Novell, Inc and Contributors. http://www.mono-project.com
TLS: normal
GC: Included Boehm (with typed GC)
SIGSEGV: normal
Notification: Thread + polling
Architecture: x86
Disabled: none



My line 42 of that file reads:
return String.format(CultureInfo.invariantCulture, '{0:' + format + '}', x) to !

What does your?

Was a StringMaker.cobra.cs file left in the ./Snapshot/Cobra.Lang directory? If so, it means the error came from the C# compiler.

Let me know how it turns out.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: compile fail?

Postby gauthier » Sat Mar 21, 2009 6:51 pm

Thanks Chuck, I'm using mono2.2 right now, trying to get another build.

I'm compiling the last revision
gauthier
 
Posts: 116

Re: compile fail?

Postby Charles » Sat Mar 21, 2009 7:07 pm

Cool. Let me know the final outcome and then I think I'll update the Cobra downloads page and possibly the ReadMe file to warn people.

Also, this was partly my fault for not testing Mono 2.2 preview releases, so I've learned my lesson and I've been testing Mono 2.4 previews. No problems to report.
Charles
 
Posts: 2515
Location: Los Angeles, CA


Return to Discussion

Who is online

Users browsing this forum: No registered users and 30 guests