15 OF 100DAYS

来源:互联网 发布:单片机最小系统板 编辑:程序博客网 时间:2024/05/16 16:39

21:29

  1. @微型计算机8251作业+8255实验二
  2. @操作系统 实验二预习报告 文件管理_设备管理教材
  3. 计算机网络实验三报告
  4. @/计算机图形学上机作业 + 实验*3 + 大作业
  5. @数字图像处理实验*2
  6. @MATLAB实验三 + 复习

今天配置OpenGL freeglut和glew
1. 在附加包含目录和附加库目录下添加 .\include .\lib更好用
2. fatal error gl.h included before glew.h
freeglut.h will include gl.h. You have to include glew.h before freeglut.h. glew is a very good and popular library but this gl.h included before glew.h is a major constraint!
I see. But this shouldn’t have been such a problem. They could solve that by adding include guards in glu.h, or gl.h, or just the #pragma once directive, like it’s always happening in such situations to avoid adding the same header file multiple times. I don’t see why they didn’t do that. I’m pissed because i don’t understand why such easy things need to become complicated. Imagine someone trying to troubleshoot such an issue with limited internet access, or few knowledgeable people around. He would never be able to proceed! Anyway. Just saying. Thanks.
3.一个懵懂的地方

// 表示不使用debug的lib,使用release的lib,如果去除,将使用debug的lib  #define NDEBUG<span style="white-space:pre">                  </span>#include <glut.h>  <span style="white-space:pre">               </span>
原创粉丝点击