Society & Culture & Entertainment Books & Literature

Hiding C++ Symbols in Static Library

    • 1). Open a command-prompt window. In Windows, you can access the command prompt by opening the Start menu and clicking on “Run.” Type in “cmd” and press the “Enter” key to launch the command prompt. On Linux systems, the command-prompt window can be found in the Applications menu inside the “Accessories” folder; it is called “Terminal.” On Mac OSX systems, you can find the command-prompt window within the “Utilities” folder. It is also called “Terminal.”

    • 2). Navigate to the folder where your C++ source code is located. All systems use the same command for changing directories: cd. For example, to change the directory to “UserName/MySourceCode/Project01,” you can type this command into the command-prompt window:
      cd UserName/MySourceCode/Project01/

    • 3). Type in the compile command to build your source-code file. By adding the “-s” command line switch, you can hide the symbols by removing the symbol table. For example, to compile the source code file “MyCode.cpp” into a program named “MyProgram,” you can type in the following:

      g++ –s MyCode.cpp –o MyProgram

    • 4). Press the “Enter” key to compile the program. The GNU compiler compiles the source code into the executable file “MyProgram” and removes the symbol table, thus hiding your symbols.

Related posts "Society & Culture & Entertainment : Books & Literature"

Lieber Collects

Books & Literature

How To Turn Your Office Cleaning 19319 From Blah Into Fantastic

Books & Literature

4 Styling Rules To help you Glance In real time Flatter

Books & Literature

Struggling With Weight Loss? These Tips Can Help You!

Books & Literature

Types of Short Story Narratives

Books & Literature

Find A Good Business To Business Collection Agency - Press Release Writing Services

Books & Literature

How to Make Your Own Disney Autograph Book

Books & Literature

Marriage ceremony Photography Suggestions for Newcomers - Effectively White Balancing Your Pictures

Books & Literature

What Lawn Sprinkler Systems Can Do

Books & Literature

Leave a Comment