Compile error |gcc|header files

I'm trying to compile my rf driver (8139D chipset).
I did install SWFgcc.
But when i'm trying to make the rf module, it says that mac.h isn't available.
So i did download it from the opensolaris project, and put it into the /usr/include/sys/ directory.
But i got errors like:
gem.h:170: error: syntax error before "mac_t"
gem.h:170: warning: no semicolon at end of struct or union
gem.h:246: error: syntax error before ':' token
gem.h:247: error: syntax error before ':' token
gem.h:248: error: syntax error before ':' token
gem.h:249: error: syntax error before ':' token
.....Other people who are running solaris on x86 didn't have any problems with it?
Is the support really that bad, or did i something wrong?
//edit: Sorry that i posted it in the wrong area

gem.h:170: error: syntax error before "mac_t"
gem.h:170: warning: no semicolon at end of struct or
union
gem.h:246: error: syntax error before ':' token
gem.h:247: error: syntax error before ':' token
gem.h:248: error: syntax error before ':' token
gem.h:249: error: syntax error before ':' token
.....Yeah, read it. It's telling you what's wrong!
First, it says there is a syntax error PRIOR to the "mac_t" - that means your INCLUDE ot whatever command is formed wrong, missing, etc.
Obviously, everything after that error is going to be an error due to the chain effect. Fix that first syntax error and anything else will reveal itself. Just double check your syntax.

Similar Messages

  • Redirecting java compilation errors to a file

    Hi,
    How do I redirect java compilation errors to a file while using a dos environment ? Help needed asap.
    Gayathri

    javac FileName.java 2> errorFileName

  • Error in header files on DMA using SDK

    I followed procedure as like as simple Hello_world mention in zedboard and chosen "OS Platform as Linux".check out this link i followed the procedure as
    http://zedboard.org/content/zedboard-create-planahead-project-embedded-p....
    Then replaced that Hello_world code by My program.I attached DMA program.while compling I faced error and post in the zedboard->support->s/w development application and then i added header files in the project explorer window in SDK to the include folder as a path.pls check out link below for header file inclusion as http://s1322.photobucket.com/user/Arunvision/media/sdk_bsp_zps99084a46.j...
    we got the error like as
    **** Build of configuration Debug for project Dma ****
    make all
    Building file: ../src/OCM2PL.c
    Invoking: ARM Linux gcc compiler
    arm-xilinx-linux-gnueabi-gcc -Wall -O0 -g3 -I"C:\Xilinx\14.4\ISE_DS\EDK\sw\XilinxProcessorIPLib\drivers\scutimer_v1_00_a\src\" -I"C:\Xilinx\14.4\ISE_DS\EDK\sw\XilinxProcessorIPLib\drivers\dmaps_v1_00_a\src" -I"C:\Xilinx\14.4\ISE_DS\EDK\sw\XilinxProcessorIPLib\drivers\scugic_v1_00_a\src" -I"C:\Xilinx\14.4\ISE_DS\EDK\sw\XilinxProcessorIPLib\drivers\common_v1_00_a\src" -I"C:\Xilinx\14.4\ISE_DS\EDK\sw\lib\bsp\standalone_v3_07_a\src\cortexa9" -c -fmessage-length=0 -MMD -MP -MF"src/OCM2PL.d" -MT"src/OCM2PL.d" -o"src/OCM2PL.o" "../src/OCM2PL.c"
    arm-xilinx-linux-gnueabi-gcc: fatal error: no input files
    compilation terminated.
    make: *** [src/OCM2PL.o] Error 1
    Pls provide solution as soon as possible.

    Ran into a very similar problem compiling code (on win7/64bit) for the zc702 board.    In our case it was due to the cygwin binaries being on the windows PATH.   You won't have to remove cygwin - just remove from the windows path.   
    Also can't take credit - John Zhao and his team at mathworks uncovered it - while we were tracking down a different issue.
    --Bart

  • Do java programms after giving compilation error generates .class file?

    Do java programms after giving compilation error generates the .class file?
    Do any outer class may have the private as access modifier?
    If someone asks you that -do any program in java after giving a compilation error gives the .class file -do any class except(inner class)
    be defined as private or static or protected or abc or xxx Now type the
    following program
    private class test
    public static void main(String s[])
    System.out.println("Hello!How are You!!");
    -Compile it.... You must have
    received this error test.java:1:The type type can't be private. Package members are always accessible within the current package. private class
    test ^ 1 error
    Here please notify that compiler has given the
    error not the warning therfore .class file should not be created but now type
    >dir *.class
    ___________ and you will see that the
    test.class file existing in the directory nevertheless this .class file
    is executable. if you will type __________________ >java test
    it will
    wish you Hello! and suerly asks you that How are You!! ________________!
    You can test it with the following as acces modifiers and the progrm will run Ofcourse it will give you compilation error.
    protected
    xxx
    abc
    xyz
    private
    Do you have any justification?

    Hmm,
    I've been working with different versions of jdk since, if I'm not mistaken, jdk1.0.6 and never was able to get *.class with compilation errors. It was true for Windows*, Linux, and Solaris*.
    About the 'private'/'protected' modifier for the type (class) - it makes perfect sence not to allow it there: why would anyone want to create a type if no one can access it? There should be a reason for restricting your types - let's say, any inner class can be private/protected.
    For ex., you shouldn't have compile problems with this:
    class Test
    public static void main(String s[])
    System.out.println("Hello!How are You!!");
    private class ToTest{}
    Sorry, but I don't really know where you can read up on that.

  • Error in header file

    While i compile this code to create dll file using command line compiler , it shows error in "twain.h"
    y it is showing error in twain.h?
    #include <jni.h>
    #include "Tmanager.h"
    #include "twain.h"
    JNIEXPORT jboolean JNICALL
    Java_Tmanager_isvalidDriver(JNIEnv *env, jclass cla)
         return (m_hTwainDLL && m_pDSMProc);
    Error :
    twain.h(84):error c2146: syntax error : missing ';' before identifier 'TW_HANDLE'
    twain.h(84):fatal error c1004:unexpected end of file found
    can anyone help me?
    Thanks,
    Sri

    twain.h(84):error c2146: syntax error : missing ';' before identifier 'TW_HANDLE'
    twain.h(84):fatal error c1004:unexpected end of file found
    can anyone help me?At least you could have shown us what's happening there around line 84 in
    that twain.h file; normally I'm psychic but this is beyond my capabilities.
    kind regards,
    Jos
    ps. this even isn't a Java question ...

  • Storing Compilation errors in a File or String

    import com.sun.tools.javac.Main;
    String Args[] = { "-classpath", ".;C:/j2sdk1.4.2_05/bin;", "-nowarn", fileName};
    I am using the command Main.compile(Args); to compile a Java File.
    It will return 0, if the file is compiled without errors.
    If errors exist, I want to store the errors in file.
    How to do that, if i use the command Main.compile(Args)

    Hi
    You can keep appending the messages to the existing file(APPEND MODE).
    You can use FILE_GET_ATTRIBUTES of Class CL_GUI_FRONTEND_SERVICES or FM EPS_GET_FILE_ATTRIBUTES to get the application file details.
    Use FM SXPG_COMMAND_EXECUTE to delete the file on application server once the duration is greater than 45 days.
    Regards
    Raj

  • Forte compile error java source files must have a .java suffix

    Hello Guru's,
    I am using Forte for Java release 2.0 build 1160, and Java SDK 1.3.1.
    When I try to compile a project in Forte I get the following error :
    "fastjavac: java source files must have a .java suffix C:\Program"
    I have looked at the source files and they do hav .java suffix!
    If this is not the correct form can someone point me in the right direction. If this is a correct forum then help is very much appreciated.
    Cheers...Harki

    Hi,
    Try to compile like this:
    javac yourfile.java
    Hope this helps you.
    Cheers.....Dinesh

  • Compile error for .ejb file

    I have one .ejb file calling another .ejb. I do this using typical lookup("ejb.xxxHome");
    Everything seems to resolve in workshop. But when I compile, I get can NOT resolve
    error.
    Appearently, .ejb does not recognize Bean and Home .java files. Any alternative?

    Hi.
    The problem is that DragManager.acceptDragDrop expects a
    UIComponent but Event.target is typed as Object. You need to cast
    the target as a UIComponent. Try this:
    DragManager.acceptDragDrop(UIComponent(event.target));

  • Error Reading Header File When Creating a CIN

    Hello everyone. I am a college student new to LabView and Im using the
    software to create a real time data acquisition system for EMG signal
    analysis for a research project. However, Im having difficulty building
    a CIN for my C code. I am using Microsoft Visual Studio.NET 2003 and
    running LabView 7.1 on Windows XP. I am using the "Using External Code
    in LabView" (April 2003 Edition) manual and I am attempting to do the
    steps located in section 3-15 under Visual C++ IDE. However, I keep
    getting fatal error C1083: Cannot open include file: 'extcode.h': No
    such file or dir. I have followed all of the directions in the manual
    and even explicitly tried adding extcode.h to my project  but I
    still get this error. My version of Visual Studio is different then the
    one described so I was wondering if there is something different that I
    have to do in this process. Any help would be greatly appreciated.
    Thanks for your time.
    Pat

    Is there a particular reason you're not using a Call Library Function Node to call a DLL instead of using a CIN? Calling DLLs from Call Library Function Node are usually a much more user-friendly process, which I would recommend, unless you need to take advantage of the extra features listed on page 1-4 of Using External Code in LabVIEW.
    Jarrod S.
    National Instruments

  • Compilation error-creating jar file

    Hi
    Can somebody pls help me out
    Whenever i run scomp filename.xsd out filename.jar
    it gives me the following error
    SBU~1\LOCALS~1\Temp\javac63818 error=2
    null
    java.io.IOException: CreateProcess: C:\xmlbean\xkit\schemas\javac @C:\DOCUME~1\B
    UGSBU~1\LOCALS~1\Temp\javac63818 error=2
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(Unknown Source)
    at java.lang.ProcessImpl.start(Unknown Source)
    at java.lang.ProcessBuilder.start(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at org.apache.xmlbeans.impl.tool.CodeGenUtil.externalCompile(CodeGenUtil
    .java:229)
    at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.j
    ava:1114)
    at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java
    :367)
    BUILD FAILED
    whereas scomp is working perfectly fine.
    Pls help me!!!

    Hi,
    Make sure that the XMLBEANS_HOME env variable is set and the PATH variable is updated to contain XMLBEANS_HOME\bin
    -Raj
    Refer to http://xmlbeans.apache.org/documentation/conInstallGuide.html for more info

  • MakePathNa​me error, though header file included

    I use the makepathname() function found in utility.h, which I did include at the top at my code, and have shown in my list of .h files.
    Also, Options>>Build Options...>>Require function prototypes is also checked.
    However, I keep getting this error: error: implicit declaration of function 'MakePathName' is invalild in C99. Make sure that you include the function prototype. I need help with this.
    Solved!
    Go to Solution.

    Another suggestion is to look at the sample userint\custctrl\hyperlinkctrl\simple.cws - it builds fine and should also work on your computer. If so, you can check the differences...

  • Gcc | header files

    I'm trying to compile my rf driver (8139D chipset).
    I did install SWFgcc.
    But when i'm trying to make the rf module, it says that mac.h isn't available.
    So i did download it from the opensolaris project, and put it into the /usr/include/sys/ directory.
    But i got errors like:
    gem.h:170: error: syntax error before "mac_t"
    gem.h:170: warning: no semicolon at end of struct or union
    gem.h:246: error: syntax error before ':' token
    gem.h:247: error: syntax error before ':' token
    gem.h:248: error: syntax error before ':' token
    gem.h:249: error: syntax error before ':' token
    .....Other people who are running solaris on x86 didn't have any problems with it?
    Is the support really that bad, or did i something wrong?
    //edit: Sorry that i posted it in the wrong area

    gem.h:170: error: syntax error before "mac_t"
    gem.h:170: warning: no semicolon at end of struct or
    union
    gem.h:246: error: syntax error before ':' token
    gem.h:247: error: syntax error before ':' token
    gem.h:248: error: syntax error before ':' token
    gem.h:249: error: syntax error before ':' token
    .....Yeah, read it. It's telling you what's wrong!
    First, it says there is a syntax error PRIOR to the "mac_t" - that means your INCLUDE ot whatever command is formed wrong, missing, etc.
    Obviously, everything after that error is going to be an error due to the chain effect. Fix that first syntax error and anything else will reveal itself. Just double check your syntax.

  • ShObjIdl.h compile error when including Photoshop SDK header?

    I develop photoshop plugins on both Mac 10.6 and Windows 7, now my code has been built and run successfully on Mac, but on Windows there are curious compile errors in a file "ShObjIdl.h", this is a Windows SDK header file. ( my VC++ version is 2010 ). It seems including some adobe SDK header file will cause the error. Is there someone who had met this? I guess some macro define conflicts.

    Sophie
    did your program work ok under 10.3.6? Is it just Tiger that gives the problem?
    I have not used xmlrpc but I have used Pro*C on OS X with no probelms.
    Where did the xmlrpc.h you are using come from? I could not find it on OS X on either Tiger or Panther. However I do find an xmlrpc.cp and a make file so I assume you would include a shared library from it in the make file for your program to be able to make the xmlrpc calls you need to.
    In general, the include files are in sub directories of /System/Library/Frameworks and it would be worth a grep -r for the declarations you want to include and put the path in the include parameter to proc.
    I hope this info helps.
    Paul

  • Javelin JSP compilation error

    Hello Everyone,
    I've a some JSP's that work some times and fail sometime with
    <head>
    <title>Javelin JSP compilation error</title>
    </head>
    <body>
    <b>Compilation of JSP File '/jsp/temp/Index.jsp' <font color=#FF0000>failed</font>:</b><HR>
    <pre>
    I tried restarting the server, removing .wlnotdelete and couple of other things.
    Why the JSP is compiled everytime(even if the server is not restarted) and Why a good looking no error JSP failis loading everytime.
    Can anyone please help.
    ~ALAPATI

    I'm using bea weblogic 8.1 SP5.
    Java - jrockit81sp5_142_08
    <head>
    <title>Javelin JSP compilation error</title>
    </head>
    <body>
    <b>Compilation of JSP File '/jsp/output/Index.jsp' <font color=#FF0000>failed</font>:</b><HR>
    <pre>
    Errors found in <PATH TO THE FILE>/Index.jsp:
    Error at line 397 column 55:
    Description: Type <MyClass> contains no field with this name.
    Error at line 399 column 13:
    Description: Type <Another Class> contains no methods with this name.
    Found 2 error(s) and 0 warning(s).
    </pre>
    </body></html>
    >
    weblogic.servlet.jsp.CompilationException: Failed to compile JSP /jsp/output/Index.jsp<html>
    <head>
    <title>Javelin JSP compilation error</title>
    </head>
    <body>
    <b>Compilation of JSP File '/jsp/output/Index.jsp' <font color=#FF0000>failed</font>:</b><HR>
    <pre>
    Errors found in <PATH TO FILE>/Index.jsp:
    Error at line 397 column 55:
    Description: Type <MyClass> contains no field with this name.
    Error at line 399 column 13:
    Description: Type <Another Class> contains no methods with this name.
    Found 2 error(s) and 0 warning(s).
    </pre>
    </body></html>
    at weblogic.servlet.jsp.WlwJspStub.compilePage(WlwJspStub.java:208)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:246)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:196)
    at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:598)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:406)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:526)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilter.java:265)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6987)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    2 errors javelin complaining is because of this.
    1) I'm trying to access MyClass.SHOW_ME_TEXT
    2) I'm trying to create an object of AnotherClass by new AnotherClass();
    Please let me know if you want more details.

  • How can I read ALL the compilation errors in a DOS window?

    On compilation using a DOS window, if the number of errors exceeds the window size, some of the errors disappear off the top of the window and I cannot read them.
    Is there an effective solution to somehow use scrolling of the DOS window or transfer the compilation errors to a file?

    Hey buddy,
    When I first started programming with Java, I wondered the same thing. I have the very best solution for you. This one is waaay easy!!!!
    There is a text editor which will not only color code your text for you, but you can easily configure it to give you the compiler /DOS output for Java. Just go to this website and download the program. Enjoy!
    http://www.textpad.com/

Maybe you are looking for

  • Error while starting Tomcat Apache and Jaguar services in AW webview server

    hi, I am facing a problem with AW webview server. I am not able to restart the Tomcat Apache and Jaguar Service after a planned server reboot activity.I am getting the below error. "Could not start Apache Tomcat service on Local Computer. Error 1069.

  • Step by step usage of following required

    Please provide me web blogs, pdfs with screen shots for usage of following 1. If... with else 2. Value mapping (no BPM, using properties) 3. split by value 4. context object regards, venkat.

  • Making a swapped in image then swap an image

    Ok, I've got my website all put together but I cannot for the life of me figure out how to do this next thing. I'm an illustrator so I have a website where the right hand side has thumbnails - those thumbnails swap an image to the main 'stage'. They

  • P850 very slow

    I have tried everything. The problem occurred after trying to use my computer while I was a passenger in car being driven over a bumpy road. I now realise this was very stupid thing to do. But on a long journey my taxi driver got lost and it took 5 h

  • What is the best practice for localization?One .rpt for all/each language?

    Hi All, I have a question : What is the best practice for localization?One .rpt for all language or one for each language? I Thanks for your response, jz