List of Xcode compiler errors?

Is there such a thing?
I know some and most errors are simple and all because the use of the wrong quotation marks could cause the problem. But there are times I am just COMPLETELY stuck on debugging. (I have an un-expected '@' in program. error right now and its a killer!
so maybe somone has a link to somewhere that has a beginners look at some errors?

This has been solved.. by me simple n00b error... not enough closed brackets in the program

Similar Messages

  • Xcode compilation error

    Hi everybody,
    I have problems with Xcode, it won't compile any of my projects, it gives me the error :
    "error: Couldn't distribute compilation because the recruiter daemon isn't listening (No such file or directory)"
    I found a similar things in Apple Xcode 2.3 documentation in known problems, but the commands they give to repair that doesn't work for me.
    I'm on Xcode 2.4 with Tiger on a MacBook.
    PLease help me ! Thanks !

    That sounds like you have distributed builds turned on but not setup properly. Turn off that setting and see if that fixes it.

  • Xcode Compilation error (speechrecognition.framework)

    I have had a bad error with Xcode 5.1.  I am building a speech recognition application, and out of the blue I got an error saying that Xcode had an error linking directly with SpeechRecognition.Framework.  I wasn't able to fix it like I could before. Since SpeechRecognition.Framework has a link inside of it, I was able to copy the original file into the framework's folder, and it would work.  Now it won't work, and I can't compile my app.  I would appriciate any help.

    That sounds like you have distributed builds turned on but not setup properly. Turn off that setting and see if that fixes it.

  • Flash limitations, Invisible Compiler Errors, swc files...

    This question is for expert users of Flash CS4/CS5 and actionscript.   Please do not comment or offer suggestions if you have no experience  with these errors or their causes.
    ===================================================
    Question:
    =======
    Publishing  an extremely complex file can sometimes result in a blank swf being  created, and no compiler errors being shown even though some may exist.   Are there any suggested methods for dealing with this?
    =======
    Details:
    =======
    Those who have written flash files with large actionscript components  will be familiar with needing to set the JAVA_TOOL_OPTIONS evinronment  variable in order to prevent the Flash compiler from crashing due to  memory limits.  The majority of the files in question require this as a  bare minimum in order to be compiled at all.
    The project in question involves several main "launcher" components,  in addition to hundreds of "modules".  The modules themselves are being  developed in a distributed manner by several programmers.  Each module  can be executed as a standalone swf, for testing and production  purposes.  Each module has a companion swc file which holds its assets  and exports them.  All of the modules make use of a shared custom code  library that sits on top of actionscript.
    The launcher program also uses the shared library code, and runs the  modules  (never more than one at a time, and clearing previously loaded ones  before loading a new one) inside of itself.  The launcher contains a  reference file(the class names typed in an include file, referencing all  of the available exported assets from the swcs) that makes all the  necessary assets available to the modules, such that any module can be  run at any time.
    ===========
    The Error:
    ===========
    Seemingly random in occurence, every now and then a file will  "compile blank".  Essentially, the compile time is very short, the swf  pops up as a blank white box, and there is absolutely nothing listed in  the "Compiler Errors" tab, nor in the output tab.  Sometimes closing  flash and relaunching it will bring the Compiler Error messages back,  though usually not.  More often opening the file on another computer in a  different copy of flash and compiling it again will show the errors.   The original computer will still not show anything, but the other  computer can be used to fix the error, and then the file will start  reporting errors again properly.
    However, sometimes, the file will "compile blank" on all computers,  and all copies of flash.  Then the only resort to find the hidden errors  and fix them, is to comment out the entire file, and slowly uncomment  out sections one at a time.  In this manner, the area where the hidden  errors are occuring can be determined, and the error found manually.
    Obviously this is an extremely frustrating situation, but one that can be "worked around".
    However, there are two more serious incarnations of this which cannot be as easily side stepped.
    1.) Sometimes certain computers/copies of flash will "compile blank" a  file that doesnt actually have errors in it.  The same file will  compile and work perfectly on one machine, and not on another.
    2.) The most severe of all...The two more complex components compile fine in cs4, but always "compile blank"  on cs5, no matter what.  The module files all compile much faster on  cs5 and work great.  However, the shared code library and the launcher  program cannot be compiled in cs5, though they compile fine in cs4.   Both compile blank every single time on cs5, with no errors reported.
    --Just as a side note here are the compile times on two different  types of computers, for cs4 and cs5, for the three types of compiled  files:
    =====================
    CS4 Compile time averages:
    =====================
    Dual Core - Pentium 4:
            Module File = 1-4 minutes
            Shared Code Library = 10+ minutes
            Launcher Program = Unusable
    6 Core AMD w 16 GBs of RAM:
             Module File = less than 10 seconds
             Shared Code Library = approx. 1 minute
             Launcher Program = 15-25 minutes
    =====================
    CS5 Compile time averages:
    =====================
    Dual Core - Pentium 4:
            Module File = less than 20 seconds
            Shared Code Library = 2-4 minutes
            Launcher Program = Compiles blank
    6 Core AMD w 16 GBs of RAM:
             Module File = less than 10 seconds
             Shared Code Library = less than 30 seconds
             Launcher Program = Compiles blank
    ========================================
    Summary:
    ========================================
    1.) Large and complex files in cs4 or cs5 can sometimes false compile, showing a blank swf, and no errors.
    2.) Large interlinked projects containing many swcs that can compile on cs4 always compile blank on cs5
    The issues involved "appear" to deal with interlinked swcs and swfs, memory, and compiler messages.
    The best solution i can think of would be some sort of verbose mode  setting, where the cs4/cs5 compilers can be set to trace all the actions  they are taking, either to a log file, or to the screen.  Rather than  simply giving a summary of the results, a real-time display of what is  occuring might lead to the actual bugs/issues.
    Eisley79

    For the future people who come searching this forum and find my thread.
    http://kb2.adobe.com/cps/405/kb405257.html
    Above is a link to adobe's official version of admitting this situation exists(and its true for cs5 as well).
    If you are reading this, and simply have a single large file that won't compile.  Attempt their solutions suggested.  Also, click the link in the comments by the user refering to a blog that helped him.
    That will explain the JAVA_TOOL_OPTIONS memory issue (which you can find many explanations on google as well).
    If however, you are working with a large number of separate swf's that load each other, and share assets and are getting the REAL problem, neither adobe's solutions, nor the JAVA_TOOL_OPTIONS will correct the problem for you.  My best suggestion to you is, have one SWF launch the next one, and break your project into pieces.  Whatever the parent SWF needed to have, can be either copied into all the children SWFs, or into several "brother" SWFs which share the loaded children SWFs, (and can actually be successfully compiled).  Then as you move from brother to brother, they can be made to appear as if they were actually ONE file, loading the children, instead of several launching each other, and sharing the loading duties.
    and as far as adobe is concerned, if i told you what i thought of you, i would get this post deleted...and myself banned.
    Anyone considering doing Enterprise level projects in Flash, DONT.  I wanted to use JAVA, but my company went with flash.  I am stuck working around it constantly, and would have been better off coding foundation classes to mimic whatever functionality we needed from flash into java.
    Maybe when actionscript 4 comes along, it will magically bring with it true object oriented programming, and Adobe will spend the time and money to make a real working compiler.  Somehow i doubt it.

  • Compiled Error in Xcode for iphone game and other questions

    Dear all,
    Hi, I am a newbie of xcode and objective-c and I have a few questions regarding to the code sample of a game attached below. It is written in objective C, Xcode for iphone4 simulator. It is part of the code of 'ball bounce against brick" game. Instead of creating the image by IB, the code supposes to create (programmatically) 5 X 4 bricks using 4 different kinds of bricks pictures (bricktype1.png...). I have the bricks defined in .h file properly and method written in .m.
    My questions are for the following code:
    - (void)initializeBricks
    brickTypes[0] = @"bricktype1.png";
    brickTypes[1] = @"bricktype2.png";
    brickTypes[2] = @"bricktype3.png";
    brickTypes[3] = @"bricktype4.png";
    int count = 0;`
    for (int y = 0; y < BRICKS_HEIGHT; y++)
    for (int x = 0; x < BRICKS_WIDTH; x++)
    - Line1 UIImage *image = [ImageCache loadImage:brickTypes[count++ % 4]];
    - Line2 bricks[x][y] = [[[UIImageView alloc] initWithImage:image] autorelease];
    - Line3 CGRect newFrame = bricks[x][y].frame;
    - Line4 newFrame.origin = CGPointMake(x * 64, (y * 40) + 50);
    - Line5 bricks[x][y].frame = newFrame;
    - Line6 [self.view addSubview:bricks[x][y]]
    1) When it is compiled, error "ImageCache undeclared" in Line 1. But I have already added the png to the project. What is the problem and how to fix it? (If possible, please suggest code and explain what it does and where to put it.)
    2) How does the following in Line 1 work? Does it assign the element (name of .png) of brickType to image?
    brickTypes[count ++ % 4]
    For instance, returns one of the file name bricktype1.png to the image object? If true, what is the max value of "count", ends at 5? (as X increments 5 times for each Y). But then "count" will exceed the max 'index value' of brickTypes which is 3!
    3) In Line2, does the image object which is being allocated has a name and linked with the .png already at this line *before* it is assigned to brick[x][y]?
    4) What do Line3 and Line5 do? Why newFrame on left in line3 but appears on right in Line5?
    5) What does Line 4 do?
    Thanks
    North

    Hi North -
    macbie wrote:
    1) When it is compiled, error "ImageCache undeclared" in Line 1. ...
    UIImage *image = [ImageCache loadImage:brickTypes[count++ % 4]]; // Line 1
    The compiler is telling you it doesn't know what ImageCache refers to. Is ImageCache the name of a custom class? In that case you may have omitted #import "ImageCache.h". Else if ImageCache refers to an instance of some class, where is that declaration made? I can't tell you how to code the missing piece(s) because I can't guess the answers to these questions.
    Btw, if the png file images were already the correct size, it looks like you could substitute this for Line 1:
    UIImage *image = [UIImage imageNamed:brickTypes[count++ % 4]]; // Line 1
    2) How does the following in Line 1 work? Does it assign the element (name of .png) of brickType to image?
    brickTypes[count ++ % 4]
    Though you don't show the declaration of brickTypes, it appears to be a "C" array of NSString object pointers. Thus brickTypes[0] is the first string, and brickTypes[3] is the last string.
    The expression (count++ % 4) does two things. Firstly, the trailing ++ operator means the variable 'count' will be incremented as soon as the current expression is evaluated. Thus 'count' is zero (its initial value) the first time through the inner loop, its value is one the second time, and two the third time. The following two code blocks do exactly the same thing::
    int index = 0;
    NSString *filename = brickTypes[index++];
    int index = 0;
    NSString *filename = brickTypes[index];
    index = index + 1;
    The percent sign is the "modulus operator" so x%4 means "x modulo 4", which evaluates to the remainder after x is divided by 4. If x starts at 0, and is incremented once everytime through a loop, we'll get the following sequence of values for x%4: 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, ...
    So repeated evaluation of (brickTypes[count++ % 4]) produces the sequence: @"bricktype1.png", @"bricktype2.png", @"bricktype3.png", @"bricktype4.png", @"bricktype1.png", @"bricktype2.png", @"bricktype3.png", @"bricktype4.png", @"bricktype1.png", @"bricktype2.png", ...
    3) In Line2, does the image object which is being allocated has a name and linked with the .png already at this line *before* it is assigned to brick[x][y]?
    Line 2 allocs an object of type UIImageView and specifies the data at 'image' as the picture to be displayed by the new object. Since we immediately assign the address of the new UIImageView object to an element of the 'bricks' array, that address isn't stored in any named variable.
    The new UIImageView object is not associated with the name of the png file from which its picture originated. In fact the UIImage object which inited the UIImageView object is also not associated with that png filename. In other words, once a UIImage object is initialized from the contents of an image file, it's not possible to obtain the name of that file from the UIImage object. Note when you add a png media object to a UIImageView object in IB, the filename of the png resource will be retained and used to identify the image view object. But AFAIK, unless you explicitly save it somewhere in your code, that filename will not be available at run time.
    4) What do Line3 and Line5 do? Why newFrame on left in line3 but appears on right in Line5?
    5) What does Line 4 do?
    In Line 2 we've set the current element of 'bricks' to the address of a new UIImageView object which will display one of the 4 brick types. By default, the frame of a UIImageView object is set to the size of the image which initialized it. So after Line 2, we know that frame.size for the current array element is correct (assuming the image size of the original png file was what we want to display, or assuming that the purpose of [ImageCache loadImage:...] is to adjust the png size).
    Then in Line 3, we set the rectangle named newFrame to the frame of the current array element, i.e. to the frame of the UIImageView object whose address is stored in the current array element. So now we have a rectangle whose size (width, height) is correct for the image to be displayed. But where will this rectangle be placed on the superview? The placement of this rectangle is determined by its origin.
    Line 4 computes the origin we want. Now we have a rectangle with both the correct size and the correct origin.
    Line 5 sets the frame of the new UIImageView object to the rectangle we constructed in Lines 3 and 4. When that object is then added to the superview in Line 6, it will display an image of the correct size at the correct position.
    - Ray

  • Fatal Syntax Errors Unique to XCode Compile

    I am attempting to bring a Unix library into an XCode project for iPad and compile it. This Unix library compiles for i386 without any problems when I use gcc from Terminal, which is v4.2. However, when I attempt to compile those same sources from within the XCode project, I receive hundreds of fatal syntax errors, even though I it is still compiling to i386, and it is still using GCC 4.2. Here is an example declaration where it gives an error:
    The Code:
    int memcmp(const void *, const void *, size_t);
    The error:
    Expected declaration specifiers or '...' before '(' token
    I must admit I am just now reading my introduction to Objective-C, so it is possible that there is a syntax error there according to some strict guidelines. The above code is actually C, but I did not worry about this because I was not expecting to extensively modify this library.
    How is the XCode compile so different from using Apple's built-in GCC 4.2 that I receive hundreds of fatal syntax errors from within XCode, but it compiles with only a few warnings from the command line?

    kienjakenobi wrote:
    At the moment, I am having difficulty compiling libpng. libpng does not appear to like Apple's custom stdio.h header file.
    What errors are you getting? I'm pretty sure I've build this library before, although not for iOS. Building for iOS shouldn't be much different than any cross-platform build, such as when building 32-bit on a 64-bit machine.
    I tried it myself and couldn't get the configure script to do it all. Those things never work when you need them to. I had to hack up the Makefile and libtool file. Here is a patch file:
    diff -crB libpng-1.2.44/Makefile libpng-1.2.44.iOS/Makefile
    * libpng-1.2.44/Makefile 2010-10-14 14:57:16.000000000 -0400
    --- libpng-1.2.44.iOS/Makefile 2010-10-14 14:50:06.000000000 -0400
    * 171,180 **
    AUTOHEADER = ${SHELL} /Users/jdaniel/Downloads/libpng-1.2.44/missing --run autoheader
    AUTOMAKE = ${SHELL} /Users/jdaniel/Downloads/libpng-1.2.44/missing --run automake-1.11
    AWK = awk
    ! CC = gcc
    CCDEPMODE = depmode=gcc3
    ! CFLAGS = -g -O2
    ! CPP = gcc -E
    CPPFLAGS =
    CYGPATH_W = echo
    DEFS = -DHAVECONFIGH
    --- 171,180 ----
    AUTOHEADER = ${SHELL} /Users/jdaniel/Downloads/libpng-1.2.44/missing --run autoheader
    AUTOMAKE = ${SHELL} /Users/jdaniel/Downloads/libpng-1.2.44/missing --run automake-1.11
    AWK = awk
    ! CC = /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc
    CCDEPMODE = depmode=gcc3
    ! CFLAGS = -g -O2 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk -arch armv7
    ! CPP = /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp -E
    CPPFLAGS =
    CYGPATH_W = echo
    DEFS = -DHAVECONFIGH
    * 194,200 **
    INSTALL_PROGRAM = ${INSTALL}
    INSTALL_SCRIPT = ${INSTALL}
    INSTALLSTRIPPROGRAM = $(install_sh) -c -s
    ! LD = /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld
    LDFLAGS =
    LIBOBJS =
    LIBPNG_DEFINES = -DPNGCONFIGURELIBPNG
    --- 194,200 ----
    INSTALL_PROGRAM = ${INSTALL}
    INSTALL_SCRIPT = ${INSTALL}
    INSTALLSTRIPPROGRAM = $(install_sh) -c -s
    ! LD = /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ld
    LDFLAGS =
    LIBOBJS =
    LIBPNG_DEFINES = -DPNGCONFIGURELIBPNG
    diff -crB libpng-1.2.44/config.log libpng-1.2.44.iOS/config.log
    * libpng-1.2.44/config.log 2010-10-14 14:57:16.000000000 -0400
    --- libpng-1.2.44.iOS/config.log 2010-10-14 14:48:08.000000000 -0400
    * 30,37 **
    Processor type: i486 (Intel 80486)
    Processors active: 0 1
    Primary memory available: 4.00 gigabytes
    ! Default processor set: 90 tasks, 370 threads, 2 processors
    ! Load average: 0.28, Mach factor: 1.71
    /bin/machine = unknown
    /usr/bin/oslevel = unknown
    /bin/universe = unknown
    --- 30,37 ----
    Processor type: i486 (Intel 80486)
    Processors active: 0 1
    Primary memory available: 4.00 gigabytes
    ! Default processor set: 90 tasks, 374 threads, 2 processors
    ! Load average: 0.38, Mach factor: 1.60
    /bin/machine = unknown
    /usr/bin/oslevel = unknown
    /bin/universe = unknown
    diff -crB libpng-1.2.44/libtool libpng-1.2.44.iOS/libtool
    * libpng-1.2.44/libtool 2010-10-14 14:57:16.000000000 -0400
    --- libpng-1.2.44.iOS/libtool 2010-10-14 14:55:40.000000000 -0400
    * 240,249 **
    hardcodeintolibs=no
    # Compile-time system search path for libraries.
    ! syslib_search_path_spec="/usr/lib/gcc/i686-apple-darwin10/4.2.1/x8664 /usr/lib/i686-apple-darwin10/4.2.1 /usr/lib /usr/local/lib"
    # Run-time system search path for libraries.
    ! syslib_dlsearch_pathspec="/usr/local/lib /lib /usr/lib"
    # Whether dlopen is supported.
    dlopen_support=unknown
    --- 240,249 ----
    hardcodeintolibs=no
    # Compile-time system search path for libraries.
    ! syslib_search_pathspec="/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/usr/lib"
    # Run-time system search path for libraries.
    ! syslib_dlsearch_pathspec="/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/usr/lib"
    # Whether dlopen is supported.
    dlopen_support=unknown
    * 260,272 **
    # The linker used to build libraries.
    ! LD="/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld"
    # Commands used to build an old-style archive.
    oldarchivecmds="$AR $AR_FLAGS $oldlib$oldobjs~$RANLIB $oldlib"
    # A language specific compiler.
    ! CC="gcc"
    # Is the compiler the GNU compiler?
    with_gcc=yes
    --- 260,272 ----
    # The linker used to build libraries.
    ! LD="/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ld"
    # Commands used to build an old-style archive.
    oldarchivecmds="$AR $AR_FLAGS $oldlib$oldobjs~$RANLIB $oldlib"
    # A language specific compiler.
    ! CC="/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc"
    # Is the compiler the GNU compiler?
    with_gcc=yes
    It seems to work:
    file ./.libs/libpng12.0.dylib
    ./.libs/libpng12.0.dylib: Mach-O dynamically linked shared library arm
    You don't need to create static libraries. Just use the "installnametool" to change the location of the dynamic libraries to @executable_path and include the required libraries inside your application bundle.

  • Compile errors that don't make any sense

    After spending a day coding, I did something to cause my project file to explode with errors. When I revert everything back to a known working version on source control I still get the same errors. I've tried everything I can think of to fix this. I started this problem while fixing a simple compile warning. I've made sure all the frameworks are included correctly. I feel it must be a project setting thats causing these problems. The GLSprite demo still compiles fine, but no matter how far back I go on source control my project file explodes with the same 121 errors. I'm not sure what I could of changed that won't go away with reverting. Any help would be greatly appreciated. I guess my next attempt will be uninstalling XCode.
    Heres the errors i'm getting
    Line Location UIAlert.h:30: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIAlert.h:40: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIAlert.h:147: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIAlert.h:158: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIBarButtonItem.h:55: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIBarButtonItem.h:74: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIColor.h:17: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:17: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:18: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:18: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:18: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:18: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:19: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:19: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:19: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:19: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:24: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:24: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:25: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:25: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:25: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:25: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:26: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:26: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:26: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:26: error: expected ')' before 'CGFloat'
    Line Location UIColor.h:56: error: expected ')' before 'CGFloat'
    Line Location UIFont.h:15: error: expected ')' before 'CGFloat'
    Line Location UIFont.h:23: error: expected ')' before 'CGFloat'
    Line Location UIFont.h:24: error: expected ')' before 'CGFloat'
    Line Location UIFont.h:25: error: expected ')' before 'CGFloat'
    Line Location UIFont.h:30: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIFont.h:31: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIFont.h:32: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIFont.h:33: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIFont.h:34: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIFont.h:35: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIFont.h:38: error: expected ')' before 'CGFloat'
    Line Location UIGeometry.h:13: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIGeometry.h:16: error: expected ')' before 'top'
    Line Location UIGeometry.h:22: error: 'UIEdgeInsets' has no member named 'left'
    Line Location UIGeometry.h:23: error: 'UIEdgeInsets' has no member named 'top'
    Line Location UIGeometry.h:24: error: 'UIEdgeInsets' has no member named 'right'
    Line Location UIGeometry.h:24: error: 'UIEdgeInsets' has no member named 'left'
    Line Location UIGeometry.h:25: error: 'UIEdgeInsets' has no member named 'bottom'
    Line Location UIGeometry.h:25: error: 'UIEdgeInsets' has no member named 'top'
    Line Location UIGeometry.h:30: error: 'UIEdgeInsets' has no member named 'right'
    Line Location UIGeometry.h:30: error: 'UIEdgeInsets' has no member named 'bottom'
    Line Location UIGeometry.h:30: error: 'UIEdgeInsets' has no member named 'bottom'
    Line Location UIGeometry.h:30: error: 'UIEdgeInsets' has no member named 'right'
    Line Location UIGeometry.h:30: error: 'UIEdgeInsets' has no member named 'top'
    Line Location UIGeometry.h:30: error: 'UIEdgeInsets' has no member named 'left'
    Line Location UIGeometry.h:30: error: 'UIEdgeInsets' has no member named 'left'
    Line Location UIGeometry.h:30: error: 'UIEdgeInsets' has no member named 'top'
    Line Location UIImage.h:52: error: expected ')' before 'CGFloat'
    Line Location UIImage.h:54: error: expected ')' before 'CGFloat'
    Line Location UIImage.h:67: error: expected declaration specifiers or '...' before 'CGFloat'
    Line Location UIInterface.h:35: error: expected ')' before 'CGFloat'
    Line Location UIInterface.h:36: error: expected ')' before 'CGFloat'
    Line Location UIInterface.h:37: error: expected ')' before 'CGFloat'
    Line Location UIInterface.h:38: error: expected ')' before 'CGFloat'
    Line Location UILabel.h:26: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UILabel.h:27: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UILabel.h:29: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UILabel.h:69: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UINavigationBar.h:22: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UINavigationController.h:28: error: expected '=', ',', ';', 'asm' or '_attribute_' before 'UINavigationControllerHideShowBarDuration'
    Line Location UINavigationController.h:43: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UINavigationController.h:44: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIPickerView.h:83: error: expected ')' before 'CGFloat'
    Line Location UIPickerView.h:84: error: expected ')' before 'CGFloat'
    Line Location UIScrollView.h:78: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIScrollView.h:79: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIScrollView.h:108: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIScrollView.h:109: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UISearchDisplayController.h:30: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UISegmentedControl.h:71: error: expected ')' before 'CGFloat'
    Line Location UISegmentedControl.h:72: error: expected ')' before 'CGFloat'
    Line Location UISlider.h:38: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIStringDrawing.h:40: error: expected ')' before 'CGFloat'
    Line Location UIStringDrawing.h:44: error: expected ')' before 'CGFloat'
    Line Location UIStringDrawing.h:62: error: expected ')' before 'CGFloat'
    Line Location UIStringDrawing.h:62: error: expected ')' before 'CGFloat'
    Line Location UIStringDrawing.h:62: error: expected ')' before 'CGFloat'
    Line Location UIStringDrawing.h:64: error: expected ')' before 'CGFloat'
    Line Location UIStringDrawing.h:64: error: expected ')' before 'CGFloat'
    Line Location UIStringDrawing.h:66: error: expected ')' before 'CGFloat'
    Line Location UIStringDrawing.h:66: error: expected ')' before 'CGFloat'
    Line Location UIStringDrawing.h:66: error: expected ')' before 'CGFloat'
    Line Location UITableView.h:48: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITableView.h:49: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITableView.h:50: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITableView.h:183: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITableView.h:184: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITableView.h:185: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITableView.h:316: error: expected ')' before 'CGFloat'
    Line Location UITableView.h:317: error: expected ')' before 'CGFloat'
    Line Location UITableView.h:318: error: expected ')' before 'CGFloat'
    Line Location UITableViewCell.h:64: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITableViewCell.h:66: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITableViewCell.h:118: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITableViewCell.h:159: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITextField.h:46: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITextField.h:58: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITextField.h:59: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITextField.h:60: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITextField.h:61: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITextField.h:62: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITextField.h:86: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UITextField.h:124: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIView.h:183: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIWindow.h:14: error: expected '=', ',', ';', 'asm' or '_attribute_' before 'UIWindowLevel'
    Line Location UIWindow.h:21: error: expected specifier-qualifier-list before 'CGFloat'
    Line Location UIWindow.h:60: error: expected specifier-qualifier-list before 'UIWindowLevel'
    Line Location UIWindow.h:77: error: expected '=', ',', ';', 'asm' or '_attribute_' before 'UIWindowLevelNormal'
    Line Location UIWindow.h:78: error: expected '=', ',', ';', 'asm' or '_attribute_' before 'UIWindowLevelAlert'
    Line Location UIWindow.h:79: error: expected '=', ',', ';', 'asm' or '_attribute_' before 'UIWindowLevelStatusBar'
    Line Location WSMethodInvocation.h:759: error: expected declaration specifiers or '...' before 'CFXMLTreeRef'
    Line Location WSMethodInvocation.h:759: error: expected declaration specifiers or '...' before 'CFXMLTreeRef'
    Line Location WSProtocolHandler.h:486: error: expected declaration specifiers or '...' before 'CFXMLTreeRef'
    Line Location WSProtocolHandler.h:486: error: expected declaration specifiers or '...' before 'CFXMLTreeRef'

    Hi Adam -
    Can we assume your source code control doesn't include the .xcodeproj file? Did you backup the entire project folder at any point? I'm guessing probably not or you would have tried the backup folder by now.
    So to review, are you saying that these compile errors are only showing up in your current project? In addition to GLSprite, can we assume you can compile any of the New Project templates?
    Is the behavior the same when you switch between Debug and Release? Simulator and Device? iPhone OS 3.0 and iPhone 2.x? I assume you've tried Build->Clean All Targets, Xcode->Quit Xcode, and restarting your Mac.
    There's a long list of other things we could check, but if it's only this one project that's broken, I would recommend starting a new project and moving all your source code into the new project. I had to do this once with a nearly complete app because of a similar, mysterious disintegration of my project. Despite my frustration at being unable to isolate the cause, the process went smoothly and took less than two hours. I could have worked faster, but I was trying to rebuild and run at various stages to be sure the project was still clean. I would recommend this, even if you need to make some stub classes to get a subset of the project to link.
    Backing all your files into a new project is strong medicine, but it's likely to work. A re-install of the SDK is no day at the beach either, since you need to carefully clean out the previous installation. If you make a mistake in the cleanup, the new installation may fail, leaving you with two problems: a broken project plus a broken environment.
    Of course if I misunderstood, and you can't even compile a template now, a re-install might be the only choice.
    Hope some part of the above is helpful!
    \- Ray

  • SharePoint 2010 Error while executing web part: System.Xml.Xsl.XslLoadException: XSLT compile error.

    Hello,
    I currently having a series of errors (18 issues) that are occurring under the below Correlation ID ad1a22f5-1ddb-4fa5-8487-143cb6fd0f9d
    I have listed (3) that are in the Web Parts category, this error/issue is causing several timed job to no longer work properly I have been trying to find the root cause for about a week now. If anyone has encountered a issue
    such as this one I'm open for suggestions.     
    (1)
    Error while executing web part: System.Xml.Xsl.XslLoadException: XSLT compile error. An error occurred at (1,475). ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
    ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.     at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest
    asyncRequest, Exception exception)     at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)     at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer,
    AsyncProtocolRequest asyncRequest)     at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)     at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer,
    AsyncProtocolRequest asyncRequest)     at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)     at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer,
    AsyncProtocolRequest asyncRequest)     at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)     at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult
    lazyResult)     at System.Threading.ExecutionContext.runTryCode(Object userData)     at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)    
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)     at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result)     at System.Net.TlsStream.Write(Byte[]
    buffer, Int32 offset, Int32 size)     at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size)     at System.Net.ConnectStream.WriteHeaders(Boolean async)     --- End of inner exception
    stack trace ---     at System.Net.HttpWebRequest.GetResponse()     at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials)     at System.Xml.XmlUrlResolver.GetEntity(Uri
    absoluteUri, String role, Type ofObjectToReturn)     at Microsoft.SharePoint.WebPartPages.WSSXmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)     at System.Xml.Xsl.Xslt.XsltLoader.CreateReader(Uri
    uri, XmlResolver xmlResolver)     at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(Uri uri, Boolean include)     at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(XmlReader reader, Boolean include)    
    --- End of inner exception stack trace ---     at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(XmlReader reader, Boolean include)     at System.Xml.Xsl.Xslt.XsltLoader.Load(Compiler compiler, Object stylesheet, XmlResolver
    xmlResolver)     at System.Xml.Xsl.Xslt.Compiler.Compile(Object stylesheet, XmlResolver xmlResolver, QilExpression& qil)     at System.Xml.Xsl.XslCompiledTransform.CompileXsltToQil(Object stylesheet, XsltSettings
    settings, XmlResolver stylesheetResolver)     at System.Xml.Xsl.XslCompiledTransform.LoadInternal(Object stylesheet, XsltSettings settings, XmlResolver stylesheetResolver)     at System.Xml.Xsl.XslCompiledTransform.Load(XmlReader
    stylesheet, XsltSettings settings, XmlResolver stylesheetResolver)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.LoadXslCompiledTransform(WSSXmlUrlResolver someXmlResolver)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.GetXslCompiledTransform()    
    at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform)
    (2)
    InnerException 1: System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according
    to the validation procedure.     at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)     at System.Net.Security.SslState.ProcessReceivedBlob(Byte[]
    buffer, Int32 count, AsyncProtocolRequest asyncRequest)     at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)     at System.Net.Security.SslState.ProcessReceivedBlob(Byte[]
    buffer, Int32 count, AsyncProtocolRequest asyncRequest)     at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)     at System.Net.Security.SslState.ProcessReceivedBlob(Byte[]
    buffer, Int32 count, AsyncProtocolRequest asyncRequest)     at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)     at System.Net.Security.SslState.ForceAuthentication(Boolean
    receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)     at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)     at System.Threading.ExecutionContext.runTryCode(Object userData)    
    at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback,
    Object state)     at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result)     at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size)     at System.Net.PooledStream.Write(Byte[]
    buffer, Int32 offset, Int32 size)     at System.Net.ConnectStream.WriteHeaders(Boolean async)     --- End of inner exception stack trace ---     at System.Net.HttpWebRequest.GetResponse()    
    at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials)     at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)     at Microsoft.SharePoint.WebPartPages.WSSXmlUrlResolver.GetEntity(Uri
    absoluteUri, String role, Type ofObjectToReturn)     at System.Xml.Xsl.Xslt.XsltLoader.CreateReader(Uri uri, XmlResolver xmlResolver)     at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(Uri uri, Boolean include)    
    at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(XmlReader reader, Boolean include)
    (3)
    InnerException 2: System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.     at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest
    asyncRequest, Exception exception)     at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)     at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer,
    AsyncProtocolRequest asyncRequest)     at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)     at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer,
    AsyncProtocolRequest asyncRequest)     at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)     at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer,
    AsyncProtocolRequest asyncRequest)     at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)     at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult
    lazyResult)     at System.Threading.ExecutionContext.runTryCode(Object userData)     at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)    
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)     at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result)     at System.Net.TlsStream.Write(Byte[]
    buffer, Int32 offset, Int32 size)     at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size)     at System.Net.ConnectStream.WriteHeaders(Boolean async)

    Hello,
    It seems that issue is related to certificate. Could you please upload certificate to central admin and make it trust.
    Just try this and see the result:
    http://social.technet.microsoft.com/Forums/en-US/cbc58585-1673-4c91-b8c1-1b95c339bbb7/could-not-establish-trust-relationship-for-the-ssltls-secure-channel?forum=fastsharepoint
    http://social.msdn.microsoft.com/Forums/en-US/7a7e56ba-6e95-4a84-9384-791818cce89d/the-underlying-connection-was-closed-could-not-establish-trust-relationship-for-the-ssltls-secure?forum=sharepointdevelopmentprevious
    http://www.infotext.com/help/sharepoint-could-not-estabilish-trust-relationship-for-the-ssltls-secure-channel-when-crawling-ssl-enabled-websites/
    If still face the issue then tell us more about your webparts and also confirm if you are facing same problem to other page and site.
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Deprecated API compilation error

    Please help. Attached is my source code. I'm receiving a compilation error that reads 'RnrBooksApp.java uses or overrides a deprecated API. Recompile with -deprecation for details.' I'm very new to Java, so I appreciate any assistance. Thank you!
    //ClassName: RnrBooksApp
    import java.sql.*;
    import java.awt.*;
    import java.awt.event.*;
    public class RnrBooksApp extends Frame implements ItemListener, ActionListener
         //Declare database variables
         Connection conBook;
         Statement cmdBook;
         ResultSet rsBook;
         boolean blnSuccessfulOpen = false;
         //Declare components
         Choice lstBooks               = new Choice();
         TextField txtISBN          = new TextField(13);
         TextField txtTitle          = new TextField(50);
         TextField txtAuthor = new TextField(30);
         TextField txtPublisher     = new TextField(30);
         Button btnAdd      = new Button("Add");
         //Button btnUpdate = new Button("Update");
         Button btnEdit     = new Button("Save");
         Button btnCancel = new Button("Cancel");
         Button btnDelete = new Button("Delete");
         Label lblMessage = new Label(" ");
         public static void main(String args[])
              //Declare an instance of this application
              RnrBooksApp thisApp = new RnrBooksApp();
              thisApp.createInterface();
         public void createInterface()
              //Load the database and set up the frame
              loadDatabase();
              if (blnSuccessfulOpen)
                   //Set up frame
                   setTitle("Books Database");
                   addWindowListener(new WindowAdapter()
                                  public void windowClosing(WindowEvent event)
                                  stop();
                                  System.exit(0);
                   setLayout(new BorderLayout());
                   //Set up top panel
                   Panel pnlTop = new Panel(new GridLayout(2, 2, 10, 10));
                   pnlTop.add(new Label("ISBN"));
                   lstBooks.insert("Select a Book to Display", 0);
                   lstBooks.addItemListener(this);
                   pnlTop.add(lstBooks);
                   pnlTop.add(new Label(" "));
                   add(pnlTop, "North");
                   //Set up center panel
                   Panel pnlMiddle = new Panel(new GridLayout(5, 2, 10, 10));
                   pnlMiddle.getInsets();
                   pnlMiddle.add(new Label("ISBN"));
                   pnlMiddle.add(txtISBN);
                   pnlMiddle.add(new Label("Title"));
                   pnlMiddle.add(txtTitle);
                   pnlMiddle.add(new Label("Author"));
                   pnlMiddle.add(txtAuthor);
                   pnlMiddle.add(new Label("Publisher"));
                   pnlMiddle.add(txtPublisher);
                   setTextToNotEditable();
                   Panel pnlLeftButtons = new Panel(new GridLayout(0, 2, 10, 10));
                   Panel pnlRightButtons = new Panel(new GridLayout(0, 2, 10, 10));
                   pnlLeftButtons.add(btnAdd);
                   btnAdd.addActionListener(this);
                   pnlLeftButtons.add(btnEdit);
                   btnEdit.addActionListener(this);
                   pnlRightButtons.add(btnDelete);
                   btnDelete.addActionListener(this);
                   pnlRightButtons.add(btnCancel);
                   btnCancel.addActionListener(this);
                   btnCancel.setEnabled(false);
                   pnlMiddle.add(pnlLeftButtons);
                   pnlMiddle.add(pnlRightButtons);
                   add(pnlMiddle, "Center");
                   //Set up bottom panel
                   add(lblMessage, "South");
                   lblMessage.setForeground(Color.red);
                   //Display the frame
                   setSize(400, 300);
                   setVisible(true);
              else
                   stop(); //Close any open connection
                   System.exit(-1); //Exit with error status
         public Insets insets()
              //Set frame insets
              return new Insets(40, 15, 15, 15);
         public void loadDatabase()
              try
                   //Load the Sun drivers
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              catch (ClassNotFoundException err)
                   try
                   //Load the Microsoft drivers
                   Class.forName("com.ms.jdbc.odbc.JdbcOdbcDriver");
                   catch (ClassNotFoundException error)
                   System.err.println("Drivers did not load properly");
              try
                   //Connect to the database
                   conBook = DriverManager.getConnection("jdbc:odbc:Book");
                   //Create a ResultSet
                   cmdBook = conBook.createStatement();
                   rsBook = cmdBook.executeQuery(
                        "Select * from Book;");
                   loadBooks(rsBook);
                   blnSuccessfulOpen = true;
              catch(SQLException error)
                   System.err.println("Error: " + error.toString());
         public void loadBooks(ResultSet rsBook)
              //Fill ISBN list box
              try
                   while(rsBook.next())
                   lstBooks.add(rsBook.getString("ISBN"));
              catch (SQLException error)
                   System.err.println("Error in Display Record." + "Error: " + error.toString());
         public void itemStateChanged(ItemEvent event)
              //Retrieve and display the selected record
              String strISBN = lstBooks.getSelectedItem();
              lblMessage.setText(""); //Delete instructions
              try
                   rsBook = cmdBook.executeQuery(
                        "Select * from Book where [ISBN] = '"
                        + strISBN + "';");
                   txtISBN.setText(strISBN);
                   displayRecord(rsBook);
                   setTextToEditable();
              catch(SQLException error)
                   lblMessage.setText("Error in result set. " + "Error: " + error.toString());
         public void displayRecord(ResultSet rsBook)
              //Display the current record
              try
                   if(rsBook.next())
                        txtTitle.setText(rsBook.getString("Title"));
                        txtAuthor.setText(rsBook.getString("Author"));
                        txtPublisher.setText(rsBook.getString("Publisher"));
                        lblMessage.setText("");
                   else
                        lblMessage.setText("Record not found");
                        clearTextFields();
              catch (SQLException error)
                   lblMessage.setText("Error: " + error.toString());
         public void actionPerformed(ActionEvent event)
              //Test the command buttons
              Object objSource = event.getSource();
              if(objSource == btnAdd && event.getActionCommand () == "Add")
                   Add();
              else if (objSource == btnAdd)
                   Save();
              else if(objSource == btnEdit)
                   Edit();
              else if(objSource == btnDelete)
                   Delete();
              else if(objSource == btnCancel)
                   Cancel();
         public void setTextToNotEditable()
              //Lock the text fields
              txtISBN.setEditable(false);
              txtTitle.setEditable(false);
              txtAuthor.setEditable(false);
              txtPublisher.setEditable(false);
         public void setTextToEditable()
              //Unlock the text fields
              txtISBN.setEditable(true);
              txtTitle.setEditable(true);
              txtAuthor.setEditable(true);
              txtPublisher.setEditable(true);
         public void clearTextFields()
              //Clear the text fields
              txtISBN.setText("");
              txtTitle.setText("");
              txtAuthor.setText("");
              txtPublisher.setText("");
         public void Add()
              //Add a new record
              lblMessage.setText(" ");     //Clear previous message
              setTextToEditable();                //Unlock the text fields
              clearTextFields();                //Clear text field contents
              txtISBN.requestFocus ();
              //Set up the OK and Cancel buttons
              btnAdd.setLabel("OK");
              btnCancel.setEnabled(true);
              //Disable the Delete and Edit buttons
              btnDelete.setEnabled(false);
              btnEdit.setEnabled(false);
         public void Save()
                        //Save the new record
                        // Activated when the Add button has an "OK" label
                        if (txtISBN.getText().length ()== 0 || txtAuthor.getText().length() == 0)
                             lblMessage.setText("The ISBN or Author is blank");
                        else
                             try
                                  cmdBook.executeUpdate("Insert Into Book "
                                            + "([ISBN], [Title], [Author], [Publisher]) "
                                            + "Values('"
                                            + txtISBN.getText() + "', '"
                                            + txtTitle.getText() + "', '"
                                            + txtAuthor.getText() + "', '"
                                            + txtPublisher.getText() + "')");
                                  //Add to name list
                                  lstBooks.add(txtISBN.getText());
                                  //Reset buttons
                                  Cancel();
                             catch(SQLException error)
                                  lblMessage.setText("Error: " + error.toString());
         public void Delete()
                        //Delete the current record
                        int intIndex = lstBooks.getSelectedIndex();
                        String strISBN = lstBooks.getSelectedItem();
                        if(intIndex == 0)          //Make sure a record is selected
                                                      //Position 0 holds a text message
                             lblMessage.setText("Please select the record to be deleted");
                        else
                             //Delete the record from the database
                             try
                                  cmdBook.executeUpdate(
                                       "Delete from Book where [ISBN] = '" + strISBN + "';");
                                  clearTextFields();               //Delete from screen
                                  lstBooks.remove(intIndex);          //Delete from list
                                  lblMessage.setText("Record deleted");     //Display message
                             catch(SQLException error)
                                  lblMessage.setText("Error during Delete."
                                       + "Error: " + error.toString());
         public void Cancel()
                        //Enable the Delete and Edit buttons
                        btnDelete.setEnabled(true);
                        btnEdit.setEnabled(true);
                        //Disable the Cancel button
                        btnCancel.setEnabled(false);
                        //Change caption of button
                        btnAdd.setLabel("Add");
                        //Clear the text fields and status bar
                        clearTextFields();
                        lblMessage.setText("");
         public void Edit()
                        //Save the modified record
                        int intIndex = lstBooks.getSelectedIndex();
                        if(intIndex == 0)          //Make sure a record is selected
                                                      //Position 0 holds a text message
                             lblMessage.setText("Please select the record to change");
                        else
                             String strISBN = lstBooks.getSelectedItem();
                             try
                                  cmdBook.executeUpdate("Update Book "
                                       + "Set [ISBN] = '" + txtISBN.getText() + "', "
                                       + "[Title] = '" + txtTitle.getText() + "', "
                                       + "[Author] = '" + txtAuthor.getText() + "', "
                                       + "[Publisher] = '" + txtPublisher.getText() + "' "
                                       + "Where [ISBN] = '" + strISBN + "';");
                                  if (!strISBN.equals(txtISBN.getText()))
                                       //Last name changed; change the list
                                       lstBooks.remove(intIndex); //Remove the old entry
                                       lstBooks.add(txtISBN.getText()); //Add the new entry
                             catch(SQLException error)
                                  lblMessage.setText("Error during Edit. " + "Error: " + error.toString());
         public void stop()
              //Terminate the connection
              try
                   if (conBook != null)
                   conBook.close();
              catch(SQLException error)
                   lblMessage.setText("Unable to disconnect");

    How DO you compile then?
    If you don't type "javac", you must be using an IDE.
    In your IDE there should be some kind of configuration
    tab or option for "compiler options" or compilation options
    or compiler arguments... something like that.
    put "-deprecation" in that text box and recompile.
    Your compiler should tell you all about which methods
    are deprecated -- you then go to your trust JavaDocs
    and lookup those methods in the API and read WHY they
    are deprecated (i.e. OLD, outdated, defunct, no longer used)
    and what you should use instead. Then, correct your
    code to no longer use the deprecated methods and instead
    do things as suggested in the deprecation comments.

  • AJAX code compilation error in jdk1.4.2_15 in JDeveloper 10.1.3.3.0

    I am using AJAX for search functionality in our appication which involves ADF JSF,jspx pages in JDeveloper 10.1.3.3.0. When I compile the following code it compiles fine without error in jdk1.5 but gives compilation error in jdk1.4.2_15.
    public List<String> autoCompleteFindUniqueNames(String searchString){
    UniqueEmployeeNamesImpl hits = this.getUniqueEmployeeNames1();
    hits.setNamedWhereClauseParam("searchPrefix",searchString.toUpperCase()+ "%");
    hits.setRangeSize(5);
    hits.executeQuery();
    ArrayList resultset = new ArrayList((int)hits.getEstimatedRowCount());
    for (Row row:hits.getAllRowsInRange()){
    resultset.add((String)row.getAttribute("LastName"));
    return resultset;
    Compilation error giving on the line " for (Row row:hits.getAllRowsInRange()){ "
    and it says " Error ; Expected "
    Can somebody helpme out what should I change on this line in order to compile this ?
    Thanks in advance,
    Ram

    Frank,
    Thanks for your response. I removed <String> after LIST and it compiles. But the problem
    is with the following iterator code which is giving error while compiling in jdk1.4.2_15. Trying to find out the equivalent iterator code of the following which is in jdk1.5
    Row row:hits.getAllRowsInRange()
    Thanks,
    Ram

  • Compile Error in Enhanced For Loop

    I'm learning generic collections and for practice wrote a simple class that uses a HashMap to store data. However, I'm getting a compile error for the code that accesses the HashMap. The error and code for my class follow.
    Can anyone help?
    Thanks...
    =====================
    The compile error:
    =====================
    MapDict.java:37: package Map does not exist for( Map.Entry entry : glossary.entrySet()  )                        ^1 error=======================
    The code for my class:
    =======================
    import java.util.Scanner;
    import java.util.HashMap;
    public class MapDict
         HashMap<String, String> glossary = new HashMap<String, String>();
         public void getEntries()
              Scanner sc = new Scanner( System.in ).useDelimiter("\n");
              String moreEntries = "y";
              String word        = "";
              String definition  = "";
              while ( moreEntries.toUpperCase().equals( "Y") )
                   System.out.print("Enter word: ");
                   word = sc.next();
                   System.out.print("Enter definition: ");
                   definition = sc.next();
                   glossary.put( word, definition);
                   System.out.print("Another glossary item? (y/n) ");
                   moreEntries = sc.next();
         public void displayEntries()
              System.out.println( glossary.size() );
              // Here is where the compile error occurs:
              for( Map.Entry entry : glossary.entrySet()  )
                   System.out.println( "\nWord: " + entry.getKey() + " Definition: " + entry.getValue() );
    }

    import java.util.Scanner;
    import java.util.HashMap;I don't see java.util.Map or java.util.Map.Entry listed here....

  • BUG: Internal compilation error, terminated with a fatal exception

    After downloading the new Oracle JDeveloper 10g production, migrating all my projects, everytime I try to make/rebuild any file or package, I get the following error:
    Internal compilation error, terminated with a fatal exception
    This happens if use either JAVAC or OJC.
    Regards,
    Yaniv Kunda

    I think the error reporting is wrong, since dbMessages.java is a translated SQLJ file, and the specified method exists in the SQLJ file around that line number - and not in the java file resulting from the translation.
    Note that line 2958, in the SQLJ file, was the simple MessageHeader.Iter messageHeaderIter; line.
    The definition of this class, is in a SQLJ file, which content is:
    package telemessage.db.impl.iterators;
    import java.sql.Timestamp;
    * Contains an iterator for viewing message headers in folder view.
    public class MessageHeader {
         #sql public static iterator Iter (
              long          MESSAGE_ID,
              String          RANDOM_KEY,
              Timestamp     DATE_SENT_BY_USER,
              short          TYPE,
              long          MESSAGE_SIZE,
              int               ATTACHMENT_COUNT,
              String          SUBJECT,
              String          FROM_DISPLAY,
              String          TO_DISPLAY,
              Long          POLLER_ACCOUNT_ID,
              long          DEVICE_ID,
              short          DEVICE_STATE,
              short          DEVICE_BLOCKING,
              Integer          DEVICE_BLOCKED_FROM,
              Integer          DEVICE_BLOCKED_UNTIL,
              short          DEVICE_TYPE,
              byte          DEVICE_SUB_TYPE,
              String          DEVICE_VALUE,
              String          DEVICE_DESCRIPTION,
              boolean          READ,
              String          TEXT,
              boolean          ESCALATING,
              int               DESCENDANT_COUNT,
              short          STATUS
    }I have pasted the original source of this method, both before and after SQLJ translation.
    before:
         public static MessageEntries getMessageDescendants(DBThread db, long messageID, boolean isRoot)
                   throws SQLException, DBException {
              List messagesList = new ArrayList();
              MessageHeader.Iter messageHeaderIter;
              #sql [db.ctx] messageHeaderIter = {
                   select
                        m.ID MESSAGE_ID,
                       m.RANDOM_KEY,
                        m.DATE_SENT_BY_USER,
                        m.TYPE,
                        m.MESSAGE_SIZE,
                        m.ATTACHMENT_COUNT,
                        m.SUBJECT,
                        m.FROM_DISPLAY,
                        m.TO_DISPLAY,
                        m.POLLER_ACCOUNT_ID,
                        -1 DEVICE_ID,
                        -1 DEVICE_STATE,
                        -1 DEVICE_BLOCKING,
                        null DEVICE_BLOCKED_FROM,
                        null DEVICE_BLOCKED_UNTIL,
                        -1 DEVICE_TYPE,
                        -1 DEVICE_SUB_TYPE,
                        null DEVICE_VALUE,
                        null DEVICE_DESCRIPTION,
                       1 READ,
                             select     tm.TEXT
                             from     TEXT_MESSAGES tm
                             where     
                                       tm.MESSAGE_ID = m.ID
                                  and     rownum = 1
                        ) TEXT,
                        0 ESCALATING,
                        0 DESCENDANT_COUNT,
                        -1 STATUS
                   from
                        MESSAGES m
                   start with
                        m.ID = decode(:isRoot,
                             1,:messageID,
                                  select          m2.ID
                                  from          MESSAGES m2
                                  where          m2.ORIGINAL_MESSAGE_ID is null
                                  start with     m2.ID = :messageID
                                  connect by     m2.ID = prior m2.ORIGINAL_MESSAGE_ID
                   connect by
                        prior m.ID = m.ORIGINAL_MESSAGE_ID
                   order by
                        m.DATE_SENT_BY_USER desc
              while (messageHeaderIter.next()) {
                   MessageEntry messageEntry = new MessageEntry(
                        messageHeaderIter.FROM_DISPLAY(),
                        messageHeaderIter.TO_DISPLAY(),
                        messageHeaderIter.SUBJECT(),
                        messageHeaderIter.MESSAGE_SIZE(),
                        messageHeaderIter.RANDOM_KEY(),
                        messageHeaderIter.MESSAGE_ID(),
                        messageHeaderIter.DATE_SENT_BY_USER(),
                        messageHeaderIter.TYPE(),
                        messageHeaderIter.ATTACHMENT_COUNT(),
                        null,   // pollerAccount
                        0,          // senderID
                        null,   // sentFromDevice
                        messageHeaderIter.READ(),
                        messageHeaderIter.TEXT(),
                        messageHeaderIter.ESCALATING(),
                    0,          // descendantsCount - not relevant for this query
                        messageHeaderIter.STATUS()
                   messagesList.add(messageEntry);
                   db.checkTimeout(); // potential time-consuming loop
              }//while
              messageHeaderIter.close();
            long[] allEntriesMessageIDs = new long[messagesList.size()];
              for (int i = 0; i < allEntriesMessageIDs.length; i++) {
                   allEntriesMessageIDs[i] = ((MessageEntry)messagesList.get(i)).getMessageContainerID();
              return new MessageEntries(messagesList, 0, allEntriesMessageIDs, null);
         } // getMessageDescendants
    after:
         public static MessageEntries getMessageDescendants(DBThread db, long messageID, boolean isRoot)
                   throws SQLException, DBException {
              List messagesList = new ArrayList();
              MessageHeader.Iter messageHeaderIter;
              /*@lineinfo:generated-code*//*@lineinfo:2959^3*/
    //  #sql [db.ctx] messageHeaderIter = { select
    //                      m.ID MESSAGE_ID,
    //                     m.RANDOM_KEY,
    //                      m.DATE_SENT_BY_USER,
    //                      m.TYPE,
    //                      m.MESSAGE_SIZE,
    //                      m.ATTACHMENT_COUNT,
    //                      m.SUBJECT,
    //                      m.FROM_DISPLAY,
    //                      m.TO_DISPLAY,
    //                      m.POLLER_ACCOUNT_ID,
    //                      -1 DEVICE_ID,
    //                      -1 DEVICE_STATE,
    //                      -1 DEVICE_BLOCKING,
    //                      null DEVICE_BLOCKED_FROM,
    //                      null DEVICE_BLOCKED_UNTIL,
    //                      -1 DEVICE_TYPE,
    //                      -1 DEVICE_SUB_TYPE,
    //                      null DEVICE_VALUE,
    //                      null DEVICE_DESCRIPTION,
    //                     1 READ,
    //                           select     tm.TEXT
    //                           from     TEXT_MESSAGES tm
    //                           where     
    //                                     tm.MESSAGE_ID = m.ID
    //                                and     rownum = 1
    //                      ) TEXT,
    //                      0 ESCALATING,
    //                      0 DESCENDANT_COUNT,
    //                      -1 STATUS
    //                 from
    //                      MESSAGES m
    //                 start with
    //                      m.ID = decode(:isRoot,
    //                           1,:messageID,
    //                                select          m2.ID
    //                                from          MESSAGES m2
    //                                where          m2.ORIGINAL_MESSAGE_ID is null
    //                                start with     m2.ID = :messageID
    //                                connect by     m2.ID = prior m2.ORIGINAL_MESSAGE_ID
    //                 connect by
    //                      prior m.ID = m.ORIGINAL_MESSAGE_ID
    //                 order by
    //                      m.DATE_SENT_BY_USER desc
      sqlj.runtime.ConnectionContext __sJT_connCtx = db.ctx;
      if (__sJT_connCtx == null) sqlj.runtime.error.RuntimeRefErrors.raise_NULL_CONN_CTX();
      sqlj.runtime.ExecutionContext __sJT_execCtx = __sJT_connCtx.getExecutionContext();
      if (__sJT_execCtx == null) sqlj.runtime.error.RuntimeRefErrors.raise_NULL_EXEC_CTX();
      boolean __sJT_1 = isRoot;
      long __sJT_2 = messageID;
      long __sJT_3 = messageID;
      synchronized (__sJT_execCtx) {
        sqlj.runtime.profile.RTStatement __sJT_stmt = __sJT_execCtx.registerStatement(__sJT_connCtx, dbMessages_SJProfileKeys.getKey(0), 39);
        try
          __sJT_stmt.setBoolean(1, __sJT_1);
          __sJT_stmt.setLong(2, __sJT_2);
          __sJT_stmt.setLong(3, __sJT_3);
          sqlj.runtime.profile.RTResultSet __sJT_result = __sJT_execCtx.executeQuery();
          messageHeaderIter = new MessageHeader.Iter(__sJT_result);
        finally
          __sJT_execCtx.releaseStatement();
    /*@lineinfo:user-code*//*@lineinfo:3008^3*/
              while (messageHeaderIter.next()) {
                   MessageEntry messageEntry = new MessageEntry(
                        messageHeaderIter.FROM_DISPLAY(),
                        messageHeaderIter.TO_DISPLAY(),
                        messageHeaderIter.SUBJECT(),
                        messageHeaderIter.MESSAGE_SIZE(),
                        messageHeaderIter.RANDOM_KEY(),
                        messageHeaderIter.MESSAGE_ID(),
                        messageHeaderIter.DATE_SENT_BY_USER(),
                        messageHeaderIter.TYPE(),
                        messageHeaderIter.ATTACHMENT_COUNT(),
                        null,   // pollerAccount
                        0,          // senderID
                        null,   // sentFromDevice
                        messageHeaderIter.READ(),
                        messageHeaderIter.TEXT(),
                        messageHeaderIter.ESCALATING(),
                    0,          // descendantsCount - not relevant for this query
                        messageHeaderIter.STATUS()
                   messagesList.add(messageEntry);
                   db.checkTimeout(); // potential time-consuming loop
              }//while
              messageHeaderIter.close();
            long[] allEntriesMessageIDs = new long[messagesList.size()];
              for (int i = 0; i < allEntriesMessageIDs.length; i++) {
                   allEntriesMessageIDs[i] = ((MessageEntry)messagesList.get(i)).getMessageContainerID();
              return new MessageEntries(messagesList, 0, allEntriesMessageIDs, null);
         } // getMessageDescendants

  • Compilation error occurred

    i get this error when i try to deploy a web service. is there a way to debug the oc4j compilation process?
    it's behaving VERY strange.. everything is ok if the webmethod is returning a class of name: "Class1", but if i rename it to "HolidayDto" i get this error.

    the whole error i've got was: error deploying ear: compilation error occurred or something similar...
    the problem was, that the HolidayDto had a property of type: java.util.List. i'm aware of the fact that WS methods cannot work with such types, but there surely are better error messages for this than: "blah, blah: compilation error occurred"
    anyway when i've changed the property name from "reviews" to "reviewsList" everything started working..
    what i still dont understand why it worked when the class name of the particular class was Class1.. strange

  • Compiler bug in 10.1.3 EA1?  get "Internal compilation error" with EnumSet

    The code sample below generates "Error: Internal compilation error, terminated with a fatal exception" when doing make. It's a very simple example, it creates an EnumSet with one element and dumps it via the "toString()" method.
    If I change the line:
    "EnumSet set = EnumSet.of(Buttons.ONE);"
    To:
    "EnumSet set = EnumSet.allOf(c);"
    It works fine. For some reason the "of" method of "EnumSet" crashes the compiler.
    Any ideas?
    ========================================
    package mypackage;
    import java.util.EnumSet;
    public class EnumDemo
    enum Buttons { ONE, TWO, THREE }
    public EnumDemo()
    public void dump()
              Class c = Buttons.class;
              EnumSet set = EnumSet.of(Buttons.ONE);
              System.out.println(set.toString());
    public static void main(String[] args)
    EnumDemo cls = new EnumDemo();
    cls.dump();
    ==============================

    package com.esp.main;
    import java.awt.Dimension;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import javax.swing.JTree;
    import javax.swing.event.TreeModelEvent;
    import javax.swing.event.TreeModelListener;
    import javax.swing.event.TreeSelectionEvent;
    import javax.swing.event.TreeSelectionListener;
    import javax.swing.tree.DefaultTreeModel;
    import javax.swing.tree.TreePath;
    public class TreeNavigator extends JTree {
    private FormMain fm;
    public TreeNavigatorNode selectedTreeNode;
    public TreePath selectedTreePath;
    public JTree thisTree;
    public TreeNavigator(FormMain pFM) {
    fm = pFM;
    thisTree = this;
    addTreeSelectionListener(new TreeSelectionListener() {
    public void valueChanged(TreeSelectionEvent e) {
    selectedTreeNode = (TreeNavigatorNode)thisTree.getLastSelectedPathComponent();
    if (selectedTreeNode == null) {
    return;
    selectedTreePath = e.getPath();
    addMouseListener(new MouseAdapter() {
    public void mouseReleased(MouseEvent e) {
    if (e.getClickCount() == 1) {
    doPopup(e.getX(), e.getY());
    String nodeInternalFrameClassName = selectedTreeNode.getInternalFrameClassName();
    String nodeNodeTypeDesc = selectedTreeNode.getNodeTypeDesc();
    if ((selectedTreeNode != null) && (nodeNodeTypeDesc.equals("FORM") || nodeNodeTypeDesc.equals("GRAPH"))) {
    fm.showInternalFrame(nodeInternalFrameClassName, fm, null);
    } else if (e.getClickCount() == 1) {
    TreePath path = thisTree.getClosestPathForLocation(e.getX(), e.getY());
    thisTree.setSelectionPath(path);
    public void doPopup(int x, int y) {
    if ((selectedTreeNode != null) && selectedTreeNode.nodeTypeDesc.equals("MODULE")) {
    fm.cm.sendString("Do Nothing");
    } else {
    fm.cm.sendString("Launch form");
    setEditable(false);
    setMaximumSize(new java.awt.Dimension(3200, 3200));
    setPreferredSize(new java.awt.Dimension(800, 100));
    setShowsRootHandles(false);
    setLargeModel(false);
    setRootVisible(false);
    setDragEnabled(false);
    DefaultTreeModel treeNavigatorModel = new DefaultTreeModel(fm.treeNavigatorNodeArray[fm.rootNode], true);
    treeModel.addTreeModelListener(new NavigatorTreeModelListener());
    setModel(treeNavigatorModel);
    expandAll(this);
    try {
    jbInit();
    } catch (Exception e) {
    e.printStackTrace();
    public void expandAll(JTree tree) {
    int row = 0;
    while (row < tree.getRowCount()) {
    tree.expandRow(row);
    row++;
    private void jbInit() throws Exception {
    this.setSize(new Dimension(286, 383));
    TreeNavigatorCellRenderer renderer = new TreeNavigatorCellRenderer(fm);
    this.setCellRenderer(renderer);
    class NavigatorTreeModelListener implements TreeModelListener {
    public void treeNodesChanged(TreeModelEvent e) {
    TreeNavigatorNode node;
    node = (TreeNavigatorNode)(e.getTreePath().getLastPathComponent());
    * If the event lists children, then the changed
    * node is the child of the node we've already
    * gotten. Otherwise, the changed node and the
    * specified node are the same.
    try {
    int index = e.getChildIndices()[0];
    node = (TreeNavigatorNode)(node.getChildAt(index));
    } catch (NullPointerException exc) {
    public void treeNodesInserted(TreeModelEvent e) {
    public void treeNodesRemoved(TreeModelEvent e) {
    public void treeStructureChanged(TreeModelEvent e) {
    }

  • Compilation errors with boost 1.36

    Hi,
    My compiler
    CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-08 2002/06/02
    I am getting the followin*g errors when trying to compile
    Error: Default arguments cannot be added in later declarations of the template function in the same scope.
    "./boost/math/tools/precision.hpp", line 108: Error: Default arguments cannot be added in later declarations of the template function in the same scope.
    "./boost/math/tools/precision.hpp", line 116: Error: Default arguments cannot be added in later declarations of the template function in the same scope.
    "./boost/math/tools/precision.hpp", line 122: Error: Default arguments cannot be added in later declarations of the template function in the same scope.
    "./boost/math/tools/precision.hpp", line 128: Error: Default arguments cannot be added in later declarations of the template function in the same scope.
    "./boost/math/tools/precision.hpp", line 141: Error: Default arguments cannot be added in later declarations of the template function in the same scope.
    "./boost/math/tools/precision.hpp", line 172: Error: Default arguments cannot be added in later declarations of the template function in the same scope.
    I have done configuration as following
    %> ./configure with-toolset=sun prefix=/u/jn/boost/boost_1_36_0
    my usr-config.jam file looks as below
    # Boost.Build Configuration
    # Automatically generated by Boost configure
    # Compiler configuration
    using sun : 6 : /home/nfs/sollocal/beatlehome1/F6U2/SUNWspro/bin/CC : <stdlib>sun-stlport
    <cxxflags>-library=stlport4 -m64 -xcode=pic32 -erroff=wvarhidemem,hidevf,hidevfinvb -errtag
    s=yes <linkflags>-library=stlport4 -m64 ;
    # Python configuration
    using python : 2.6 : /usr/local ;
    my Makefile
    BJAM=./tools/jam/src/bin.solaris/bjam
    BJAM_CONFIG= -sICU_PATH=/usr
    prefix=/u/jnarayan/boost/boost_1_36_0
    exec_prefix=$(prefix)
    libdir=$(exec_prefix)/lib
    includedir=$(prefix)/include
    LIBS=
    all: .dummy
    @echo "$(BJAM) $(BJAM_CONFIG) --user-config=user-config.jam $(LIBS)"
    @$(BJAM) $(BJAM_CONFIG) --user-config=user-config.jam $(LIBS) || \
    echo "Not all Boost libraries built properly."
    clean: .dummy
    rm -rf bin.v2
    distclean: clean
    rm -rf Makefile config.log
    check: .dummy
    @cd status && ../$(BJAM) $(BJAM_CONFIG) --user-config=../user-config.jam || echo "S
    ome Boost regression tests failed. This is normal for many compilers."
    install: .dummy
    @echo "$(BJAM) $(BJAM_CONFIG) address-model=64 user-config=user-config.jam pref
    ix=$(prefix) exec-prefix=$(exec_prefix) libdir=$(libdir) --includedir=$(includedir) $(L
    IBS) install"
    @$(BJAM) $(BJAM_CONFIG) address-model=64 --user-config=user-config.jam --prefix=$(p
    refix) --exec-prefix=$(exec_prefix) --libdir=$(libdir) --includedir=$(includedir) $(LIBS) i
    nstall || echo "Not all Boost libraries built properly."
    .dummy:
    thanks in advance for your help

    BOOST cannot be compiled with WS6u2.
    The oldest compiler that can build BOOST is Sun Studio 11 (C++ 5.8).
    You will have better luck with Sun Studio 12 (C++ 5.9). Both Studio 11 and Studio 12 are free.
    Get Sun Studio 12 here:
    [http://developers.sun.com/sunstudio/]
    Sun Studio 12 requires Solaris 9, 10, or Open Solaris.
    If you are running Solaris 8, get Sun Studio 11 instead:
    [http://developers.sun.com/sunstudio/products/previous/11/index.jsp]
    After installing the appropriate version of Sun Studio, get all current patches for it here:
    [http://developers.sun.com/sunstudio/downloads/patches/index.jsp]
    Then check Simon's blog for advice on building BOOST with Sun Studio 11 or 12.
    [http://blogs.sun.com/sga/category/Boost]

Maybe you are looking for

  • Using AutoCAD on a Mac Pro

    I was a devoted mac user all through college. (I even had one of those old macs with the 9in mono screens - LOL), but had to switch in the late 1980's because as an engineer using CAD software I was forced to go PC. I have been a pc user ever sinse b

  • Database Adapter - Using in Clause

    In the Database adapter - I need to generate a Query like Select * from employee where empid in (1,2). empid - is a integer column I have tried the pure sql option and generated a query like Select * from employee where empid in (#ids). In the transf

  • How to call database procedure in oracle forms

    Hi, Can anyone describe me that how I'll call database procedure in oracle forms (6i,10g)? Thanks in Advance. Baloch

  • Solaris 10/10 dvd not boot

    I try to install Solaris 10/10 from DVD boot disc, and use Installation check CD. It boot OK, and print what my system is like to install Solaris 10/10: Vendor Device: Type Name Solaris Driver: 32BIT 64BIT nVidia Corpora... U nForce2 USB Controller Y

  • ORA-01653: unable to extend table  by 16 in tablespace

    Hi All, When i run the script it throws the following error msg: ORA-01653: unable to extend table by 16 in tablespace Can anyone help me. Thanks in advance