1 thought on “Ask the master! What software can the suffix? SDW files can be opened.”

  1. SDW LOTUS WORDPRO graphics file; DWORD (32 -bit) data of the original symbol

    Download
    This on the GCC website (GCC.GNU/) or search through the Internet to find download resources. The latest version of GCC is 3.4.0. There are generally two forms available for downloading: GCC-3.4.0.TAR.GZ and GCC-3.4.0.tar.bz2, but the compression format is different, the content is exactly the same, one can be downloaded.

    2. Unzip
    Depending on the compression format, select the corresponding method below (the following "%" indicate the command line prompt):
    n% TAR XZVF GCC-3.4.0.TAR.GZ
    or
    % BZCAT GCC-3.0.TAR.BZ2 | Tar XVF-

    The newly generated GCC-3.4. 0 This directory is called the source directory, and it is represented by $ {srcdir}. In the future, at the place where $ {srcdir} appears, it should be replaced with a real path. You can view the current path with the PWD command.

    The detailed GCC installation instructions in $ {srcdir}/install directory, you can use the browser to open index reading.

    3. Create the target directory
    The target directory (represented by $ {objdir}) is where the compilation results are used. GCC recommends that the compiled files should not be placed in the source directory $ {srcdir] (although this can be done), it is best to store it alone in another directory, and it cannot be a subdirectory of $ {srcdir}.

    . For example, you can build a target directory called GCC-Build (with source directory $ {srcdir} is the same level of directory):

    % mkdir GCC-BUILD r r
    % CD GCC-BUILD

    The operation below is mainly performed under the target directory $ {objdir}.

    4. Configuration
    The purpose of the configuration is to determine where to install the GCC compiler ($ {Destdir}), what language to support, and specified other options. Among them, $ {Destdir} cannot be the same as $ {Objdir} or $ {srcdir} directory.

    The configuration is done by executing the configure by executing $ {srcdir}. Its command format is (remember to replace $ {Destdir} with your real path):

    % $ {srcdir}/configure -prefix = $ {Destdir} R n For example, if you want to install GCC 3.4.0 to /usr/local/gcc-3.4.0 directory, then $ {Destdir} means this path.

    On my machine, I configured this:

    % ../gcc-3.4.0/configure-prefix =/usr/local/gcc- 3.4.0-Enable-Threads = POSIX-Disable-Checking --Nable-LONG-LONG-Host = i386-RedHat-LINUX-With-System-ZLib-Languages ​​= C, C , Java

    In the GCC in the /usr/local/gcc-3.0 directory, support the C/C and Java language. For other options, see the help description provided by GCC.

    5. Compile

    % make

    This is a long process. It took more than 50 minutes on my machine (P4-1.6).

    6. Installation
    The command below to copy the compiled library files and other copies to the $ {Destdir} directory (according to the path you set, you may need the authority of the administrator):

    % make install

    . At this point, the installation process of GCC 3.4.0 is completed.

    6. Other files of other settings
    gcc 3.4.0, including command files (such as GCC, G ), library files, etc. In the BIN directory, the library file is under lib, and the header file is under include. Because the directory where the command file and the library file is located have not been included in the corresponding search path, it is necessary to make appropriate settings to find and use them smoothly.

    6.1 GCC, G , GCJ settings
    If you want to use GCC 3.4.0 GCC and other commands, the simple method is to put its path $ {Destdir}/bin on the environment In variable path. I do n’t use this method, but in the manner of symbolism. The advantage of this is that I can still use the original old version of the GCC compiler on the system.

    First, check the path of the original GCC:

    % who GCC

    bin/gcc. Therefore, the original GCC command is in the/usr/bin directory. We can make a symbol connection of GCC 3.4.0 GCC, G , GCJ and other commands in the/usr/bin directory:

    % cd/usr/bin
    % ln- s $ {Destdir}/Bin/GCC GCC34
    % ln -S $ {Destdir}/bin/g g 34
    % ln -S $ {Destdir}/bin/gcj gcj34

    , you can use GCC34, G 34, GCJ34 to call GCC 3.4.0 GCC, G , GCJ to complete the compilation of C, C Java programs. At the same time, GCC, G and other commands in the old version of GCC compilers can still be used.

    6.2 Settings of the path of the library
    In the $ {Destdir}/lib path to the environment variable ld_library_path, it is best to add it to the system configuration file, so that you do n’t need to do it every time Set this environment variable.

    . For example, if GCC 3.4.0 is installed in the /usr/local/gcc-3.0 directory, it can be executed directly on the command line or add it in the file/etc/profile under the rh Linux The following sentence:

    setenv ld_library_path /usr/local/gcc-3.4.0/lib:00_library_path n
    7. Test
    34, etc.) Compile your previous C and C programs to check whether the newly installed GCC compiler can work normally.

    8. You can delete or retain $ {srcdir} and $ {objdir} directory as needed.
    Reference materials:
    GCC (GCC.GNU/ Install/)

Leave a Comment