Standard C Libraries

I posted this in a different forum, and was referred to this one.
Original post: http://discussions.apple.com/thread.jspa?messageID=4124221
Hi,
This may or may not be a stupid question, but how can I obtain standard C libraries for Tiger? Specifically, things like stdio.h and math.h
I have gcc-4.0 installed.
They are for use with Matlab mex files.
Any help on where or how to get these would be greatly appreciated.
Thanks in advance,
Dave

Dave--
This may or may not be a stupid question, but how can
I obtain standard C libraries for Tiger?
Specifically, things like stdio.h and math.h
I have gcc-4.0 installed.
They are for use with Matlab mex files.
Any help on where or how to get these would be
greatly appreciated.
Hmmm. I have Xcode installed and they're in a couple of places. First, they're sort of in /usr/include. I say "sort of," because some of them, like math.h, are buried a bit deeper than that. What do you get if you run this command at the Terminal?:
<pre class="command">cat /usr/include/math.h</pre>You should get the Apple Public Source License, then a set of switches that point to the proper header file for the particular architecture you're compiling for. I'm not sure whether they'd be there if you didn't install Xcode or not.
Here's the contents of my /usr/include/architecture/i386 directory:
<pre class="command">ls -l /usr/include/architecture/i386/
total 208
-r--r--r-- 1 root wheel 1911 Jul 22 2005 alignment.h
-r--r--r-- 1 root wheel 9168 Mar 8 2006 asm_help.h
-r--r--r-- 1 root wheel 1228 Jul 22 2005 byte_order.h
-r--r--r-- 1 root wheel 1663 Jul 22 2005 cpu.h
-r--r--r-- 1 root wheel 3199 Jul 22 2005 desc.h
-rw-r--r-- 1 root wheel 16605 Sep 11 16:30 fenv.h
-r--r--r-- 1 root wheel 3610 Jul 22 2005 fpu.h
-r--r--r-- 1 root wheel 3278 Jul 22 2005 frame.h
-r--r--r-- 1 root wheel 1338 Jul 22 2005 io.h
-rw-r--r-- 1 root wheel 22818 Sep 11 16:30 math.h
-r--r--r-- 1 root wheel 3129 Apr 13 2005 pio.h
-r--r--r-- 1 root wheel 3351 Mar 24 2005 reg_help.h
-r--r--r-- 1 root wheel 1499 Jul 22 2005 sel.h
-r--r--r-- 1 root wheel 2335 Jul 22 2005 table.h
-r--r--r-- 1 root wheel 2735 Jul 22 2005 tss.h</pre>If you also install the 10.3.9 and 10.4 SDKs, they'll also be in there:
<pre class="command">ls -l /Developer/SDKs/MacOSX10.4u.sdk/usr/include/architecture/i386/math.h
-rw-r--r-- 1 root wheel 22818 Sep 11 16:30 /Developer/SDKs/MacOSX10.4u.sdk/usr/include/architecture/i386/math.h</pre>I'm not familiar with Matlab and mex files, though, but is it possible it's how the projects are set up? Can you provide more details on how you're including them, and how you're compiling the mex files?
charlie

Similar Messages

  • Standard C++ Libraries Out of Range

    My InDesign PlugIn runs ok when built under VS2005 but when built under VS2008 I get an assertion "Standard C++ Libraries Out of Range" when calling into SnapshotUtilsEx::Draw(). Since the Readme.txt recommends building with VS2005, I believe this to be an incompatibility with the VS2008 Standard C++ Libraries. Can someone confirm and indicate if there is (maybe beta) VS2008 version of the InDesign PlugIn SDK available or coming soon?
    Thanks.
    John

    Hi John
    I'm not pretty sure about that but it might be related to iterators. Don't have a VS2008 but you can try to add this:
    #define _SECURE_SCL 0
    #define _HAS_ITERATOR_DEBUGGING 0

  • ISO C Binding with standard C libraries, and Fortran pointer functions

    The ISO-C-Binding extension is mostly working in Sun Fortran, so I have been experimenting with auto-generated interfaces to C libraries, which I hope to develop in to a complete SWIG addition. Ideally, many of the standard C libraries should eventually be commonly available.
    One of the problem I realized is that many C library entities are made available via macros. For example, even stdin and stdout are macros by default. The same issues came up when C++ tried to standardize access to C libraries, which resulted in an alternative library to access C functions: http://www.cplusplus.com/reference/clibrary/.
    One example is the C 'errno', which is defined as a "modifiable l-value", and traditionally was an external int, but resolves to a function in modern multi-threaded environments. Variations in C libraries probably will require C wrapper functions, but entities like errno can be made to work more like C, if Fortran pointer function results can be handled directly like a normal reference. For example, errno could be accessed as follows:
    Fortran source:
    program test_errno
    use ISO_C_Binding
    implicit none
    interface
    function errno() bind(C,name="cerrno")
    use ISO_C_Binding, only: C_int
    implicit none
    integer(C_int), pointer :: errno
    end function errno
    end interface
    write (*,*) 'errno=',errno()
    errno() = 10
    write (*,*) 'errno=',errno()
    end program test_errno
    C source:
    #include <errno.h>
    int *cerrno(void) { return &errno; }
    With the current Sun Fortran, this gives errors. I think that F2008 includes improved specifications involving pointer function results, but I have read through the F2008 draft enough to figure out the details. Ideally, a pointer function result should simply be identical to a temporary pointer variable, instead of lot of complicated specifications involving specific cases. For example, a pointer function returning a derived-type pointer should be able to access a member value like this:
    lookup_data("name")%value = 10
    where lookup_data is a function returning a pointer to a derived type, which has a member named value.
    Does anyone know how F2008 is intended to handle function pointers? Is this something where the details are still incomplete? Is it possible that a complete generalization of function-pointer results is not possible?

    The ISO-C-Binding extension is mostly working in Sun Fortran, so I have been experimenting with auto-generated interfaces to C libraries, which I hope to develop in to a complete SWIG addition. Ideally, many of the standard C libraries should eventually be commonly available.
    One of the problem I realized is that many C library entities are made available via macros. For example, even stdin and stdout are macros by default. The same issues came up when C++ tried to standardize access to C libraries, which resulted in an alternative library to access C functions: http://www.cplusplus.com/reference/clibrary/.
    One example is the C 'errno', which is defined as a "modifiable l-value", and traditionally was an external int, but resolves to a function in modern multi-threaded environments. Variations in C libraries probably will require C wrapper functions, but entities like errno can be made to work more like C, if Fortran pointer function results can be handled directly like a normal reference. For example, errno could be accessed as follows:
    Fortran source:
    program test_errno
    use ISO_C_Binding
    implicit none
    interface
    function errno() bind(C,name="cerrno")
    use ISO_C_Binding, only: C_int
    implicit none
    integer(C_int), pointer :: errno
    end function errno
    end interface
    write (*,*) 'errno=',errno()
    errno() = 10
    write (*,*) 'errno=',errno()
    end program test_errno
    C source:
    #include <errno.h>
    int *cerrno(void) { return &errno; }
    With the current Sun Fortran, this gives errors. I think that F2008 includes improved specifications involving pointer function results, but I have read through the F2008 draft enough to figure out the details. Ideally, a pointer function result should simply be identical to a temporary pointer variable, instead of lot of complicated specifications involving specific cases. For example, a pointer function returning a derived-type pointer should be able to access a member value like this:
    lookup_data("name")%value = 10
    where lookup_data is a function returning a pointer to a derived type, which has a member named value.
    Does anyone know how F2008 is intended to handle function pointers? Is this something where the details are still incomplete? Is it possible that a complete generalization of function-pointer results is not possible?

  • How to learn standard tag libraries

    hello sir
    i m new to standard tag libraries and dont know that how to proceed plz help me out that how to proceed and if possible then plz give the the link of some good study material....
    thank you
    gaurav

    Did it ever occur to you that there are (online) shops with those big paper like bricks, which have words in them? They are called books, and if you read them knowledge will lodge itself into your brain if you will let it.
    Don't be cheap, buy a book!

  • Error in XI while using standard EDI Libraries of Conversion Agent

    Hi,
    We are planning to use conversion agent for EDI to XML conversion using standard libraries.
    Right now working on EDI 867 and is working fine in my local system. But when we moved the contents
    to XI server, we are getting the following error
    *“ConversionAgent/ServiceDB/TS_867_Product_Transfer_and_Resale_Report_Parser/TS_867_Product_Transfer
    andResale_Report_parsers_segments.tgp(547): is_optional is not a known profile or PT”*
    Can anybody help us to solve this issue?
    Regards,
    Ravi

    HI,
    The module name must be localejbs/sap.com/com.sap.nw.cm.xi/CMTransformBean.
    The parameter name must be TransformationName.
    The parameter value must be the conversion agent project name deployed in serviceDB. In the above example, the Tutorial_3 project from the documentation in step 1 is used.
    And also it was failed to update the log.See the folder access onceagain.
    many links provided in that blog itself ,plz check.
    Regards
    Chilla..

  • Standard java libraries "do not exist"

    I'm fairly new to Java programming, and, well, programming in general. I've been building small, simple java programs for a couple of months now.
    But all of a sudden (after a short period of not coding anything) I tried to write a program with that imported a standard java library (javax.sound.midi), and on compile, got the error message "package sound does not exist." Upon trying other packages, I've found that none of them work. Not Swing, not even util. This hasn't happened before. I've written plenty of other programs that imported standard libraries with no problem. I've tried mussing with %CLASSPATH% to no avail, (namely setting it to "C:\j2sdk1.4.2_04\jre\lib" among other things), and at best can cause it to not be able to find java.lang anymore.
    What gives?

    error message "package sound does not exist." I question if your import statement is valid - how come the complaint is about the sound package (a non-existent package) rather than javax.sound.midi?
    I tried various invalid imports, though, and couldn't duplicate that exact error text.

  • Standard Object Libraries

    Hi everyone,
    I am new in the Form 6i environment and I would like to use some smart classes for interface development. I am not able to find that. The smart class is unabled in the menu of the object library and I am not able to find the STNDRD20.OLB suggested in the Oracle on line help topics.
    Any suggestion is very appreciated.
    tantica

    The STNDRD20.OLB comes with the 6i Form Demos and is saved in the $ORACLE_HOME\TOOLS\DEVDEMO60\DEMO\FORMS folder. Good luck.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by tantica ():
    Hi everyone,
    I am new in the Form 6i environment and I would like to use some smart classes for interface development. I am not able to find that. The smart class is unabled in the menu of the object library and I am not able to find the STNDRD20.OLB suggested in the Oracle on line help topics.
    Any suggestion is very appreciated.
    tantica<HR></BLOCKQUOTE>
    null

  • How to use standard APIs for customized services

    Hello,
    I try to use IUserMappingService which has some hard coded paths to services (user mapping service). However sys admin customized the services location and it's impossible to use standard SAP libraries. For example, the standard library has a path:  "com/sapportals/portal/prt/service/usermapping", but a customized path is "com/sap/portal/pdk/srv/usermapping". When I run this iView, I am getting a message: Caused by: java.lang.NoClassDefFoundError: com/sapportals/portal/prt/service/usermapping/IUserMappingService
    Please advise.
    Thanks,
    Yan

    I guess i know what the problem is. How have you given a reference to the UM service in the portalapps.xml file ??
    I think you would have given the reference as "UserMapping". Now the PRT will look for this particular service and in the portalapps.xml of this service the ClassName would be defined as com.sapportals.portal.prt.service.UserMapping, which the PRT is not able to find.
    You can try giving the FQN in the service reference, but i doubt it will work because the PRT will still look for the above class name at the predefined location.
    Regards, Akhilesh

  • Slide libraries are no longer available in SharePoint 2013, what to plan when upgrading from 2010 to 2013?

    What will happen to the existing 2010 libraries when we try to upgrade them to SharePoint 2013? What can we do to them now to prevent them from breaking since we are currently on SharePoint 2010?
    -Kash

    Hi,
    If you're using a third-party tool, you can map the slide libraries to standard document libraries.
    Even if is no the subject, you can still create Slide libraries in SharePoint 2013, please see : http://techtrainingnotes.blogspot.fr/2012/11/finding-missing-sharepoint-2013-slide.html.
    My technical blog on SharePoint ||
    My contributions on the TechNet Gallery

  • Importing third-party java libraries

    I have just downloaded jakarta httpclient and am trying to get it to work with a program I am writing. Are there instructions somewhere on importing third-party libraries? I've searched these forums, the tutorials, and even google and haven't found any. Or can someone just tell me how to do it?
    Basically I have a folder with a list of java files. I run javac program.java to compile and then java program. The one thing I have seen in these forums is about setting the classpath, but no specifics on what to set it to. Basically I have a folder with the source called java. The only subfolder there is org, the next subfolder is apache, next is commons, then httpcliet, and then all the actual java files with a few other folders with the java files in them. It gives examples in the folder src which is the parent of java. In src there is a folder called examples. The relevent import statements are:
    import org.apache.commons.httpclient.HttpClient;
    import org.apache.commons.httpclient.MultiThreadedHttpConnectionManager;
    import org.apache.commons.httpclient.methods.GetMethod;These are all valid files under the folder system, yet it gives me the error : package org.apache.commons.httpclient does not exist for the first 2 and package org.apache.commons.httpclient.methods does not exist.
    There are also errors resulting from it not recognizing the import statements. Can someone help me please?

    I had a choice between source and binary, if I
    download the binary, should I put the jar file inthe
    folder with the rest of my *.java files?You can, but I'd advise against it because it gets
    messy and confusing.
    Or do I have
    to put the whole folder (with the API, liscense,
    readme, etc. in it) in the same folder as MY codeor
    do I just need the .jar file? You just need the jar file. Don't unpack the jar
    file; the standard java libraries know how to deal
    with a jar file just fine.
    More-or-less standard practice would be to create a
    directory hierarchy like this:
    project_name/
    project_name/lib/
    project_name/src/
    project_name/classes/
    Put the jar files in project_name/lib. Put your java
    source files (the ones that you're creating) into
    src/, and when you compile, put the compiled class
    files into classes/ (use the -d option to javac to do
    that). When you compile and run, include both the
    classes/ directory and the jar files (note: NOT the
    lib/ directory, specify the individual .jar files) in
    the classpath.So do I need the absolute path of the .jar file? If I were to put it in the same folder as my source could I just specify as
    javac -classpath whateverjar.jar MyFile.java
    or do I have to do javac -classpath C:\my folder\my other folder\etc\projectName\lib\whateverjar.jar MyFile.java?
    Thanks

  • Standard Tag library

    Hi All
    Could anybody let me know what are all standard tag libraries is
    being used for JSP Development in Jdeveloper 3.2.3 environment
    apart from the default one.
    I founnd couple of them on internet, but its difficult to decide
    which one to use. Can some body provide me the url's where I can
    download the trial versions of them
    Thanks!
    Arvind

    Try the Apache Jkarta project tag libraries. They're free and
    quite extensive. Kudos to Apache for all the fine work this
    group does.

  • Where are C++ Standard Library Classes for Unicode RFC SDK?

    I have the Unicode RFC SDK and there is a document (sapucdoc.htm) that explains that the C++ standard library classes have SAP_ equivalents. For example:
        string --> SAP_string
    It then says that header files for these classes are named SAP<standard lib name>.hpp. So for the string class:
        string.h --> SAPstring.hpp
    The rfcsdk/include directory does not contain any of the header files.  Where can I find these header files and possibly libraries I need to use the standard C++ libraries with this version of the RFC SDK?
    Thanks.

    Those icons are not accessible directly.
    Try setting the appropriate button type, like following code uses "info light" type to show the "i" icon.
    {cod}
    UIButton *aboutButton=[UIButton buttonWithType: UIButtonTypeInfoLight];
    {code}

  • 802.11 Java Libraries

    Understanding that I can use standard socket libraries to connect to TCP networks that exist over 802.11, Bluetooth or standard ethernet devices, I was wondering if there exists a Java library for wireless cards that can be used (or has methods) to detect (sniff) for 802.11 networks. If so, where do I find this library? Thank you.

    https://javoplanet.dev.java.net/
    http://java.sun.com/developer/community/chat/JavaLive/2001/jl0904.html
    http://www.palowireless.com/java/devtools.asp

  • VIs from LabView libraries not found in .exe built with Application Builder

    I have added VIs that are called by reference to the dynamic vi list in the App Builder, but some of them fail to run because of sub VIs that aren't found at runtime.
    These sub VIs are from the standard LabView libraries. For example: "Open/Create/Replace file.vi", "Write Key (I32).vi", "Open File+.vi" and "Read File+ (string).vi". Also, a typedef "ADC.flx.ctl" can't be found(from the Motion CustomControls library).
    Even if I have those VIs open when I compile all of my VIs (using Ctrl-Shift-Run), they can't be found when I run the executable.
    Brian Smith
    Advanced Light Source
    Lawrence Berkeley National Laboratory

    Are you running the executable on the development machine? If not, make sure that all the required drivers are installed on the target machine (i.e. NI-MOTION etc.).
    The version of the LabVIEW Runtime Engine also has to be the same as the LabVIEW development version.
    Under �Application Builder >> Target >> Build Options� make sure to choose �Single target file...�. This way all sub VIs will be compiled into the executable.
    In LabVIEW 7.1 you can choose to �Disconnect type definitions�� under the �Application Settings� in Application Builder. Does it help to remove the checkmark?
    Best regards,
    Philip C.
    Applications Engineer
    National Instruments
    www.ni.com/ask
    - Philip Courtois, Thinkbot Solutions

  • Creation of report with the help of report painter

    Dear Experts,
                         I need report painter material, if any body have  pls  farward to me.
    my intension to create controlling report with the help of report painter.
    I am ready to award full points.
    Thanks in advance
    Regards
    avudaiappan
    Moderator - Please read this:
    /thread/931177 [original link is broken]
    Thread locked

    Hello Chinasammy,
    Report Painter allows you to create reports using data from SAP application components, which you can adapt to meet your individual requirements.
    Many of your reporting requirements can already be met by using the standard reports provided by various SAP application components. If these SAP standard reports do not meet your reporting needs, Report Painter enables you to define your specific reports quickly and easily.
    When executing a Report Painter report, it is displayed by the system in Report Writer format. You thus have access to the same functions as for Report Writer reports defined in the same way, and can combine Report Painter and Report Writer reports together in a report group.
    Report Painter uses a graphical report structure, which forms the basis for your report definition and displays the rows and columns as they appear in the final report output.
    To facilitate report definition, you can use many of the standard reporting objects provided by SAP (such as libraries, row/column models, and standard layouts) in your own specific reports. When you define a Report Painter report you can use groups (sets). You can also enter characteristic values directly.
    Advantages of Report Painter include:
    Flexible and simple report definition
    Report definition without using sets
    Direct layout control: The rows and columns are displayed in the report definition as they appear in the final report output, making test runs unnecessary.
    =============================================
    Below mentioned is the process for creating reports using Report Painter as a tool.
    Selecting and maintaining a library for your report: As the transfer structure to Report Painter you use a report table, which is defaulted by SAP and can not be maintained. This table contains characteristics, key figures and predefined columns. In a library, you collect the characteristics, key figures, and predefined columns from the report table, which you need for your Report Painter reports.
    When you define a Report Painter report, you assign it to a library. Reports assigned to one library can only use the characteristics, key figures, and predefined columns selected for that library.
    When you create or maintain a library, the Position field determines the sequence in which the characteristics, key figures or (predefined) key figures appear in the Report Painter selection lists when you define a report. This allows you to position the objects that you use regularly in your reports at the beginning of the selection lists. If you do not make an entry in the Position field, you will not be able to use this object in Report Painter reports.
    You can use either the standard SAP libraries for your reports or define your own.
    (ii) Selecting or maintaining a standard layout for your report: Standard layouts determine report layout features and the format of your report data.If the SAP standard layouts do not meet your reporting requirements, you can create a new  standard layout or change an existing one.
    (iii) Defining row and column models: A model is a one-dimensional, predefined reporting structure that you can insert in either the rows or columns of your report.If you often use the same or similar row or column definitions in your reports, it is recommended that you create row or column models.
    You must define the row and/or column models that you want to include in your report definition before you define the report.
    You can also use the standard column models supplied by SAP.
    (iv) Defining the report: Defining a Report Painter report involves the following steps.
    (a) Define the report columns: You define the report columns using the characteristics, key figures, and predefined columns selected for the library that the report uses. Alternatively, you can use a column model for column definition. Column models are predefined column structures which you insert into your entire column definition, instead of defining each individual column.
    (b) Define the report rows: You define the report rows using the characteristics selected for the library selected for the report.
    Alternatively, you can use a row model for your row definition. Row models serve the same purpose as column models, but are used to define a report row.
    Edit and format the report rows and columns in line with your requirements. (For example, you can hide rows or columns, define the column width or define colors for your report rows).
    (iii)Define general data selection criteria for the selection of your report data: Selection criteria are the characteristics used to select data for the entire report. You cannot enter characteristics as data selection criteria if they are already being used in the report rows or columns.
    (iv) Assigning the report to a report group: Once you have defined a report, you must assign it to a report group. A report group can contain one or more reports from the same library. However, reports that share the same data will select data more quickly and improve processing time.
    Hopw this helps you. Please let me know if you need anything more and assign points.
    Rgds
    Manish

Maybe you are looking for

  • Login error in creating new module

    I am trying to create a new module to deploy my source objects. The Design repository is on a window client and the Runtime repository is on a UNIX server. On step 3 of the wizard for creating a data source(New module Wizard) my connection info for t

  • Problem with Icon in JCheckBox

    I have a problem with a JCheckBox, when I assign an Icon to it, the checkBox dissapears and the only thing I see is the Icon. Is there a way to have the CheckBox and the Icon? Thanks Alejandro

  • Nokia Lumia 2520 USB 3.0

    Looking for a functioning Micro USB 3.0 adapter for the 2520. I've tested different cable adapter. The most are working, but without the full USB 3.0 power. I get only 2.0 speed. Does anyone have a suggestion for me much light?

  • PC Suite SMS programme sends multiple SMS

    Hi, If I write an SMS using the message editor in the PC Suite message centre it multiplies the number sent as soon as I press "send message". Usually by 4. So a message sent to "Friend" will suddenly show up as "Friend", "Friend", "Friend", "Friend"

  • Assign values to items in arraylist

    Hi, I have 2 arraylists: players: player1, player2, player3 games: game1, game2 I want to assign players to a game. For example: player1 -> game1, player2 -> game1 and player3 -> game2 How can i assign a player to a game? How can i register it? and h