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. The Lounge
  3. VS 2022 is not C friendly

VS 2022 is not C friendly

Scheduled Pinned Locked Moved The Lounge
visual-studio
80 Posts 14 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.
  • J Jeremy Falcon

    Try again, you can still write a static lib in C in VS2022. You don't need to use pragmas either. While I'm not a fan of VS these days as it's too bloated, at least be fair and do the research before saying something sucks because it can't do something - when it can. We're supposed to be mature professionals. Supposed to be...

    Jeremy Falcon

    J Offline
    J Offline
    jmaida
    wrote on last edited by
    #38

    guys. I am not ranting. I have done all the suggestions, checked all the boxes, VS will not recognize the include statement it's frustration. It's not the static library issue anymore. I used the GLFW test program example from their website. Simple C program. VS will flag their include as not found even when the path is fulled included as additional include GLFW folks are also working it.

    "A little time, a little trouble, your better day" Badfinger

    J 1 Reply Last reply
    0
    • J jmaida

      Typo in the post it's #include GLFW/glfw3.h (with <> brackets. If I explicit put them this post incorrect displays them) which VS flags with red underline of #include which is the signal it cannot find the file even though I have the complete path d:\code\glfw3.3.8\include in the additional includes field of the applications properties and it is a valid path to the required file VS says it cannot find the file and recommends I use some strange application called vcpkg to install it Like I say VS ______s

      "A little time, a little trouble, your better day" Badfinger

      D Offline
      D Offline
      David ONeil
      wrote on last edited by
      #39

      If you read my post, I said to use quotation marks around the include, not '<' and '>', so #include "somefile.h". There is a big difference. And don't put an '=' or a ' ' inside the include file (so not #include "somefile somefile.h=""" - just #include "somefile.h". It isn't VS - it is GIGO.

      Our Forgotten Astronomy | Object Oriented Programming with C++ | Wordle solver

      J 1 Reply Last reply
      0
      • J jmaida

        guys. I am not ranting. I have done all the suggestions, checked all the boxes, VS will not recognize the include statement it's frustration. It's not the static library issue anymore. I used the GLFW test program example from their website. Simple C program. VS will flag their include as not found even when the path is fulled included as additional include GLFW folks are also working it.

        "A little time, a little trouble, your better day" Badfinger

        J Offline
        J Offline
        Jeremy Falcon
        wrote on last edited by
        #40

        So you're the type that argues all day long - got it. You may wish to read your original post again. Clearly, you think that's not ranting. It is... but whatever.

        Jeremy Falcon

        J 1 Reply Last reply
        0
        • D David ONeil

          If you read my post, I said to use quotation marks around the include, not '<' and '>', so #include "somefile.h". There is a big difference. And don't put an '=' or a ' ' inside the include file (so not #include "somefile somefile.h=""" - just #include "somefile.h". It isn't VS - it is GIGO.

          Our Forgotten Astronomy | Object Oriented Programming with C++ | Wordle solver

          J Offline
          J Offline
          jmaida
          wrote on last edited by
          #41

          tried that quotes still no go

          "A little time, a little trouble, your better day" Badfinger

          D 1 Reply Last reply
          0
          • L Lost User

            Visual Studio Code.

            J Offline
            J Offline
            Julian Ragan
            wrote on last edited by
            #42

            Nah, it is not simple once you try to go outside defaults.

            1 Reply Last reply
            0
            • J jmaida

              tried that quotes still no go

              "A little time, a little trouble, your better day" Badfinger

              D Offline
              D Offline
              David ONeil
              wrote on last edited by
              #43

              Like Jeremy, I can guarantee it isn't something on VS's end. It is responsible for more pieces of software than you or I can count to in a day. It must be something on GLFW's end with malformed headers. Does the header immediately include another header that is at another location? Is that malformed? Go that direction or another with GLFW taking responsibility, quit blaming VS. Build the code in my article on your end and go through all the instructions. Then create a GLFW project starting one file at a time without using any CMAKE or any other shortcuts. You will figure it out that way. You will never figure it out just by blaming VS.

              Our Forgotten Astronomy | Object Oriented Programming with C++ | Wordle solver

              J 1 Reply Last reply
              0
              • D David ONeil

                Like Jeremy, I can guarantee it isn't something on VS's end. It is responsible for more pieces of software than you or I can count to in a day. It must be something on GLFW's end with malformed headers. Does the header immediately include another header that is at another location? Is that malformed? Go that direction or another with GLFW taking responsibility, quit blaming VS. Build the code in my article on your end and go through all the instructions. Then create a GLFW project starting one file at a time without using any CMAKE or any other shortcuts. You will figure it out that way. You will never figure it out just by blaming VS.

                Our Forgotten Astronomy | Object Oriented Programming with C++ | Wordle solver

                J Offline
                J Offline
                jmaida
                wrote on last edited by
                #44

                I will. Thank you. I blame VS because 1. Have 2 copies of exactly the same C file. 2. Put them into VS "exactly" the same way (here is where the rub is, because VS makes that more complicated than it should be as "exactly" is not what has happened) 3. one works fine, the other does not. 4. Did a difference on .project files. Not "exactly" the same. That is what I am trying to resolve. If it is user error then shame on VS for making it easy to do.

                "A little time, a little trouble, your better day" Badfinger

                D C 2 Replies Last reply
                0
                • J Jeremy Falcon

                  So you're the type that argues all day long - got it. You may wish to read your original post again. Clearly, you think that's not ranting. It is... but whatever.

                  Jeremy Falcon

                  J Offline
                  J Offline
                  jmaida
                  wrote on last edited by
                  #45

                  I do not like to argue all day long. I am looking for helpful input. I have received it and I have taking everyone's advice, but I still cannot get VS to behave. Frustrating. OK. You can call it ranting. So what. I am an extremely experienced C programmer (I have also written code in C, Fortran, Cobol, Algol, PL/I ...) as well. Writing C code since K&R first publication, so feel qualified to complain. I am retired now and doing some experimenting using GLFW's VS libraries to facilitate porting a large body of work to VS for programmers at a former employer. I will calmly say VS is not a user/programmer friendly application. I have used it on and off since it first came out and it keeps getting worse. But I will solve this problem.

                  "A little time, a little trouble, your better day" Badfinger

                  J J 2 Replies Last reply
                  0
                  • J jmaida

                    I will. Thank you. I blame VS because 1. Have 2 copies of exactly the same C file. 2. Put them into VS "exactly" the same way (here is where the rub is, because VS makes that more complicated than it should be as "exactly" is not what has happened) 3. one works fine, the other does not. 4. Did a difference on .project files. Not "exactly" the same. That is what I am trying to resolve. If it is user error then shame on VS for making it easy to do.

                    "A little time, a little trouble, your better day" Badfinger

                    D Offline
                    D Offline
                    David ONeil
                    wrote on last edited by
                    #46

                    Find the main header that controls everything. Make a single VS project with just that. Comment out all of the included headers. Even comment out the code. Get that to compile. Then uncomment one header and get that to compile. Etc. etc. If it is a big project it will take quite a while. I have gone through a process like that before. It wasn't fun, but I found the stupid effing mistake. It was my own mistake.

                    Our Forgotten Astronomy | Object Oriented Programming with C++ | Wordle solver

                    J 1 Reply Last reply
                    0
                    • J Julian Ragan

                      Ever seen a simple IDE?

                      J Offline
                      J Offline
                      jmaida
                      wrote on last edited by
                      #47

                      Code Blocks is more straight forward

                      "A little time, a little trouble, your better day" Badfinger

                      J R 2 Replies Last reply
                      0
                      • D David ONeil

                        Find the main header that controls everything. Make a single VS project with just that. Comment out all of the included headers. Even comment out the code. Get that to compile. Then uncomment one header and get that to compile. Etc. etc. If it is a big project it will take quite a while. I have gone through a process like that before. It wasn't fun, but I found the stupid effing mistake. It was my own mistake.

                        Our Forgotten Astronomy | Object Oriented Programming with C++ | Wordle solver

                        J Offline
                        J Offline
                        jmaida
                        wrote on last edited by
                        #48

                        doing so as we espeak. BTW reading your article too.

                        "A little time, a little trouble, your better day" Badfinger

                        L 1 Reply Last reply
                        0
                        • J jmaida

                          Code Blocks is more straight forward

                          "A little time, a little trouble, your better day" Badfinger

                          J Offline
                          J Offline
                          Julian Ragan
                          wrote on last edited by
                          #49

                          CB is specialized for C/C++ and Fortran, so it will be far simpler than VS, but again, it is not simple. BTW it was my first IDE, so I have some newbie dev experience with it, it was not hell, but it still required serious effort to configure.

                          1 Reply Last reply
                          0
                          • J jmaida

                            I do not like to argue all day long. I am looking for helpful input. I have received it and I have taking everyone's advice, but I still cannot get VS to behave. Frustrating. OK. You can call it ranting. So what. I am an extremely experienced C programmer (I have also written code in C, Fortran, Cobol, Algol, PL/I ...) as well. Writing C code since K&R first publication, so feel qualified to complain. I am retired now and doing some experimenting using GLFW's VS libraries to facilitate porting a large body of work to VS for programmers at a former employer. I will calmly say VS is not a user/programmer friendly application. I have used it on and off since it first came out and it keeps getting worse. But I will solve this problem.

                            "A little time, a little trouble, your better day" Badfinger

                            J Offline
                            J Offline
                            Jeremy Falcon
                            wrote on last edited by
                            #50

                            Ok... whatever.

                            Jeremy Falcon

                            J 1 Reply Last reply
                            0
                            • J Jeremy Falcon

                              Ok... whatever.

                              Jeremy Falcon

                              J Offline
                              J Offline
                              jmaida
                              wrote on last edited by
                              #51

                              I guess you are the whatever type. :)

                              "A little time, a little trouble, your better day" Badfinger

                              J 1 Reply Last reply
                              0
                              • J jmaida

                                I guess you are the whatever type. :)

                                "A little time, a little trouble, your better day" Badfinger

                                J Offline
                                J Offline
                                Jeremy Falcon
                                wrote on last edited by
                                #52

                                I guess you lack the self-awareness to see you proved my point about you looking to rant and argue. Since I know you're going to reply and continue this charade, you can have the last post. Still won't have the solution though.

                                Jeremy Falcon

                                J 5 Replies Last reply
                                0
                                • J Jeremy Falcon

                                  I guess you lack the self-awareness to see you proved my point about you looking to rant and argue. Since I know you're going to reply and continue this charade, you can have the last post. Still won't have the solution though.

                                  Jeremy Falcon

                                  J Offline
                                  J Offline
                                  jmaida
                                  wrote on last edited by
                                  #53

                                  I am robot.

                                  "A little time, a little trouble, your better day" Badfinger

                                  1 Reply Last reply
                                  0
                                  • J Jeremy Falcon

                                    I guess you lack the self-awareness to see you proved my point about you looking to rant and argue. Since I know you're going to reply and continue this charade, you can have the last post. Still won't have the solution though.

                                    Jeremy Falcon

                                    J Offline
                                    J Offline
                                    jmaida
                                    wrote on last edited by
                                    #54

                                    whatever

                                    "A little time, a little trouble, your better day" Badfinger

                                    1 Reply Last reply
                                    0
                                    • J Jeremy Falcon

                                      I guess you lack the self-awareness to see you proved my point about you looking to rant and argue. Since I know you're going to reply and continue this charade, you can have the last post. Still won't have the solution though.

                                      Jeremy Falcon

                                      J Offline
                                      J Offline
                                      jmaida
                                      wrote on last edited by
                                      #55

                                      Yes. not charade

                                      "A little time, a little trouble, your better day" Badfinger

                                      1 Reply Last reply
                                      0
                                      • J Jeremy Falcon

                                        I guess you lack the self-awareness to see you proved my point about you looking to rant and argue. Since I know you're going to reply and continue this charade, you can have the last post. Still won't have the solution though.

                                        Jeremy Falcon

                                        J Offline
                                        J Offline
                                        jmaida
                                        wrote on last edited by
                                        #56

                                        Roy Head - Treat Her Right - clean audio - YouTube[^]

                                        "A little time, a little trouble, your better day" Badfinger

                                        1 Reply Last reply
                                        0
                                        • J Jeremy Falcon

                                          I guess you lack the self-awareness to see you proved my point about you looking to rant and argue. Since I know you're going to reply and continue this charade, you can have the last post. Still won't have the solution though.

                                          Jeremy Falcon

                                          J Offline
                                          J Offline
                                          jmaida
                                          wrote on last edited by
                                          #57

                                          Looking for a job? Never mind you already work for MS.

                                          "A little time, a little trouble, your better day" Badfinger

                                          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