Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. Help with precompiled headers needed!!

Help with precompiled headers needed!!

Scheduled Pinned Locked Moved Managed C++/CLI
c++visual-studiohelpcsharphtml
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Ben Page
    wrote on last edited by
    #1

    Hi there. I am working on a project wich requires me to use matrices and do some computations on them. So I downloaded the LINPACK linear algebra library from http://www.csit.fsu.edu/~burkardt/cpp\_src/linpack/linpack.html The library is very nice, offering a huge collection of very usefull matrix arithmetic. I downloaded the source for the library which consisted of 2 .h files and 2 .c files. And when I try to compile the c files, using Visual Studio C++ 2003, I get two build errors: linpack.c c:\Documents Of I\UP\Year5 Semester2\EPR400\My Programming\TestMatrix\linpack.C(5668) : fatal error C1010: unexpected end of file while looking for precompiled header directive blas1.c c:\Documents Of I\UP\Year5 Semester2\EPR400\My Programming\TestMatrix\blas1.C(4532) : fatal error C1010: unexpected end of file while looking for precompiled header directive So I need help to get the source code to compile on VS C++ 2003. I think I need to change settings for the precompiled headers section of the project properties but I dont have a clue what it all means. Please help! Thanks! Ben

    N 1 Reply Last reply
    0
    • B Ben Page

      Hi there. I am working on a project wich requires me to use matrices and do some computations on them. So I downloaded the LINPACK linear algebra library from http://www.csit.fsu.edu/~burkardt/cpp\_src/linpack/linpack.html The library is very nice, offering a huge collection of very usefull matrix arithmetic. I downloaded the source for the library which consisted of 2 .h files and 2 .c files. And when I try to compile the c files, using Visual Studio C++ 2003, I get two build errors: linpack.c c:\Documents Of I\UP\Year5 Semester2\EPR400\My Programming\TestMatrix\linpack.C(5668) : fatal error C1010: unexpected end of file while looking for precompiled header directive blas1.c c:\Documents Of I\UP\Year5 Semester2\EPR400\My Programming\TestMatrix\blas1.C(4532) : fatal error C1010: unexpected end of file while looking for precompiled header directive So I need help to get the source code to compile on VS C++ 2003. I think I need to change settings for the precompiled headers section of the project properties but I dont have a clue what it all means. Please help! Thanks! Ben

      N Offline
      N Offline
      Neagoe Gabriel
      wrote on last edited by
      #2

      add to your c files #include "stdafx.h" if u are using then into a visual c++ project with precompiled header project option :D NG

      T 1 Reply Last reply
      0
      • N Neagoe Gabriel

        add to your c files #include "stdafx.h" if u are using then into a visual c++ project with precompiled header project option :D NG

        T Offline
        T Offline
        therealcombat
        wrote on last edited by
        #3

        Or you could just edit your project properties to not include precompiled headers.

        B 1 Reply Last reply
        0
        • T therealcombat

          Or you could just edit your project properties to not include precompiled headers.

          B Offline
          B Offline
          BenPage
          wrote on last edited by
          #4

          Hi. Including the "stdafx.h" file in all the source files worked. I couldn't turn of the Use Precompiled Headers option because the other source files in my project did indeed already include "stadafx.h". Thanx for the help guys!!

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups