Kompilacja Error

0
1>stdafx.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class std::_Vector_iterator<class std::_Vector_val<struct std::_Simple_types<class cgicc::FormEntry> > > __thiscall cgicc::Cgicc::getElement(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?getElement@Cgicc@cgicc@@QAE?AV?$_Vector_iterator@V?$_Vector_val@U?$_Simple_types@VFormEntry@cgicc@@@std@@@std@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@@Z)
1>stdafx.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class std::_Vector_const_iterator<class std::_Vector_val<struct std::_Simple_types<class cgicc::FormEntry> > > __thiscall std::vector<class cgicc::FormEntry,class std::allocator<class cgicc::FormEntry> >::end(void)const " (__imp_?end@?$vector@VFormEntry@cgicc@@V?$allocator@VFormEntry@cgicc@@@std@@@std@@QBE?AV?$_Vector_const_iterator@V?$_Vector_val@U?$_Simple_types@VFormEntry@cgicc@@@std@@@std@@@2@XZ)
1>C:\Users\TomekWojek\Desktop\Kurwisko\Release\gamerionere.exe : fatal error LNK1120: 2 unresolved externals 
0

z fusow wroze ze zapewne brakuje definicji getElement mimo ze ja wywolujesz

pokaz lepiej kod

btw gratuluje nazwanie folderow...

0
fasadin napisał(a):

z fusow wroze ze zapewne brakuje definicji getElement mimo ze ja wywolujesz

pokaz lepiej kod

btw gratuluje nazwanie folderow...

proszę bardzo

 #include "stdafx.h"

#include <iostream>
#include <vector>  
#include <string>  
#include <stdio.h>  
#include <stdlib.h> 

#include <cgicc/CgiDefs.h> 
#include <cgicc/Cgicc.h> 
#include <cgicc/HTTPHTMLHeader.h> 
#include <cgicc/HTMLClasses.h>  

using namespace std;
using namespace cgicc;

int main()
{
	Cgicc formData;

	cout << "Content-type:text/html\r\n\r\n";
	cout << "<html>\n";
	cout << "<head>\n";
	cout << "<title>Using GET and POST Methods</title>\n";
	cout << "</head>\n";
	cout << "<body>\n";

	form_iterator fi = formData.getElement("first_name");
	if (!fi->isEmpty() && fi != (*formData).end()) {
		cout << "First name: " << **fi << endl;
	}
	else{
		cout << "No text entered for first name" << endl;
	}
	cout << "<br/>\n";
	fi = formData.getElement("last_name");
	if (!fi->isEmpty() && fi != (*formData).end()) {
		cout << "Last name: " << **fi << endl;
	}
	else{
		cout << "No text entered for last name" << endl;
	}
	cout << "<br/>\n";

	cout << "</body>\n";
	cout << "</html>\n";

	return 0;
}
0

wrozenie z fusow bylo nietrafne

Jak dodales do projektu CGI?

  • masz liby?
  • ustawiles do nich sciezke?
  • ustawiles wszystkie flagi ktore sa wymagne? (o ile sa)
  • ustawiles zmienna srodowiskowa? (jezeli jest wymagana)
0
fasadin napisał(a):

wrozenie z fusow bylo nietrafne

Jak dodales do projektu CGI?

  • masz liby?
  • ustawiles do nich sciezke?
  • ustawiles wszystkie flagi ktore sa wymagne? (o ile sa)
  • ustawiles zmienna srodowiskowa? (jezeli jest wymagana)

1.cgi pobrałem ze strony http://www.gnu.org/software/cgicc/
przekompilowałem używając vs 2010
2.tak używając input inaczej nie widział liba: cgicc.lib
3.zadnych flag nie ustawiałem raczej NIE MA
4.nie ustawiałem raczej nie jest wymagane

pomoże ktoś? lub wie skąd mogę pobrać bibloteki/liby full paczke cgi c/c++?

ref

1 użytkowników online, w tym zalogowanych: 0, gości: 1